web counter
Rails – Single Page RapidWeaver Websites With Ease
My Image

All the latest RapidWeaver Stacks reviewed,
plus the most important community news …

Stay up to date with current RapidWeaver developments

Rails – Single Page RapidWeaver Websites With Ease

Thanks to the iPhone, all smart phones now have swipe actions. Swipe actions are especially useful when viewing web pages, so what better way to display a website than as a single page website divided into sections?
Using any standard RapidWeaver theme it's easy to add endless amounts of content, but there is no simple method of navigating that content. Or is there?
Nick Cates has come up with a Stacks solution that lets you easily transform any RapidWeaver themed webpage into a Single Page website. Rails.

There are already a couple of solutions available for creating single page websites. Not all of them will easily adapt to the RW theme that you want to use. Rails changes that. And Rails is dead simple to use.

Rails - single page websites

Drop Rails onto a Stacks page and you will find that you have a content box with three sections. And the new stack has automatically added navigation buttons for the sections. All you now have to do is add your content and name the sections. A Single Page website, built within minutes and without any complicated configuration!

The Rails main settings panel controls the menu configuration and allows you to match the Rails-Section Menu to your theme. The first settings allow you to define the width of the Menu Items, The Item Text Size and the button Radius.
Next, you can add an Items V.Line – a vertical dividing line between the buttons and the main content with Items. Item H. Line adds a horizontal dividing line between the buttons. Extra Bottom (default 100px) adds a space below the Rails Sections to allow easier scrolling. If you add a footer to your page this may be set to 0px.
The Navigation Items will slide down the page as you scroll. The Transition Time may be set between 0 and 2000 ms and you'll find a choice of seven different Easing Types – the slide transition.
Items Alignment may be set to the Left, or Right hand side of your page and Hide [email protected] defines the breakpoint at which they will be hidden. The default is set to a viewport of 700px.
Top Offsets has settings for Items and Sections. Each is set to 80px by default. This means that when an Item is clicked, both the Section and the Items jump to a position 80px below the top of the browser window. I find that 80px is fine for the navigation, but set Sections to 0px so that the new section arrives seamlessly at the top of the window. I couldn't take the time to animate the screenshot above, so I added a second instance of the navigation Items – you get the idea.

The Rails Sections padding default to Bottom 5%, Left 10%. In the screenshot above, I removed both and padded the columns stack instead to allow the sections to adjoin seamless and the images to expand to full width.
Item List gives you four Colour settings for the navigation buttons – Static, Hover Lines and Current [Active]. The same settings are also available for Item Text and Item Icons.

Rails Item

Once you've worked your way through all the above settings, your navigation should blend seamlessly with your theme. All that remains is to add the navigation text and, if required, an Icon to each button.

To do so, simply click on the button and a new settings panel will be displayed. Add your Item Name, click Font Awesome Icon (if required), add a Top Separator (or not), and, if you choose to do so, add a link to an external page.
Yes, by clicking the + button in the Rails Item stack, you can add further buttons and link them to external pages!
The final Rail Item settings allow you to format the dividing line and the Font Awesome icons, if you've added them.

When you've added content to your Rails Section, you can format each section individually by clicking it and then returning to the settings panel. The panel contains Section Colours for the Background, Text, Links and [link] Hover. The Background may be set to Transparent and there is a checkbox to let the RW theme override the Section colours.

To add further sections, click the Rails stack + button to add a new child stack. You will also need to add a new child stack to the items stack – the new button is automatically linked to the new Section.

Single Page websites aren't going to go out of fashion any time soon and Rails is currently the simplest method of building them with any RapidWeaver theme you care to choose — and it even looks great.

blog comments powered by Disqus
Please note that the forum is operated by DISQUS.
When you sign in to comment, RWNinja will provide your email, first and last names to DISQUS. That information, along with your comments, will be governed by DISQUS’ privacy policy. By commenting, you are accepting the DISQUS terms of service.

Links to the developers ® All trademarks cited on this page are the property of their respective owners.

Subscribe to Ninja News
or ask a question

Hi, I’m the Ninja Bot. What’s your name?
Nice to meet you, [1-1]. Could you tell me your mail address?
[1-1], would you like to subscribe to the monthly Ninja Newsletter?

Yes, I would like to receive your monthly newsletter.

No thanks, I’m good for now. I have a different issue.

Thanks for your support, [1-1]. Is there anything else I can do for you?

[1-1], thanks for subscribing.
By clicking 'Submit', you are giving your consent to having rjh-webdesign collect your name and email.
These details are used exclusively for the newsletter and will not be passed on to third parties!

As soon as I've added you to the mailing list, you'll receive a mail asking you to confirm your subscription.

If you made a further request, I’ll get back to you – typically within 24 hrs.

Name: [1-1] [1-2]
Email; [2]

Contacted you via the Siphon form at Ninja News.

I would like to subscribe to the Ninja Newsletter


I’m sorry to hear that, [1-1]. How may I help you then today?

[1-1], thanks for contacting me. I’ll review your mail, and get back to you – typically within 24 hrs.

Name: [1-1] [1-2]
Email; [2]

Contacted you via the Siphon form at Ninja News.

I don’t want to subscribe to the Ninja Newsletter right now.



Thanks again for contacting us. Your request was successfully submitted.

  • Stacks Image 76789
  • Stacks Image 76774
  • Stacks Image 76776
  • Stacks Image 76783
  • Stacks Image 76791
  • Stacks Image 76787

Looking for Inspiration?

Looking for Inspiration for a new site, or need a CTA
really quickly?

The Latest & Greatest

AdblockDetector for RapidWeaver
Advertisements on some websites are extremely annoying, they can envelope occasional pages like a ...
Portal - Online Partials for RapidWeaver
Your website has standard Headers and Footers and sometimes contains elements within a page that ...
Soundboard for RapidWeaver
If Weavers wish to add a series of audio clips to their pages, they could obviously use a ...
  • Do you have a question regarding RapidWeaver?

  • Would you like help with your new project?

  • Would you like us to build your new RapidWeaver website?

Contact Information

rjh logo

rjh web design

265 Moo 2
Mae Na Toeng Nai, Pai
Mae Hong Son
Thailand 58130

About Us

We design websites and print-products for small businesses at reasonable prices. We specialise in Responsive Web Design.


This site uses Cookies to determine the best method of display in combination with your browser.
We do not harvest or sell personal information.
© rjh web design 2010—17

Powered by rjh-design

This website was built with loving care on a Mac using Foundation. For more information, contact me.

Don’t miss a post!

Sign up for our monthly newsletter.

A monthly digest of all the latest updates from our RapidWeaver blog, keeping you up to date with the hottest new stacks and themes.

View previous campaigns.

By clicking 'Submit', you are agreeing to receive emails from Ninja News

Our newsletter is distributed via MailChimp, who is also responsible for maintaining our mailing list. You can read their privacy policy here.

Subscribe to the Ninja Newsletter

* indicates required

Subscribe to the Ninja Newsletter

You've reached the bottom of the page, thanks for reading.

If you enjoyed what you read, you can subscribe to the Ninja Newsletter and receive a review summary once a month.

Thanks for your subscription

We shall send you a summary of the Ninja News reviews once a month.
We do not send out any other mails and we shall not, under any circumstances, share your email address with third parties.