I have a section which I'd like to appear only on the homepage. Is there any way I can alter the layout.html code so that it only shows this particular section on the homepage?
Thanks
Official response from NationBuilder Support
Taylor, using liquid conditionals, you can edit your layout.html file with something like:
{% if page.slug == 'home' }
Place all content you want to appear only on this page slug here.
{% endif }
Share this post
Showing 4 reactions
Sign in with
Certified Architect
Check by cStreet - Mobile event check-in for organizers
Certified Architect
Certified Developer
{% if page.slug == ‘home’ }
Put your code you want to show up only on the homepage in here
{ endif %}