Jump to content
Sign in to follow this  
fxrescbe

Showing boxes on homepage only

Recommended Posts

fxrescbe

I have a blog with a dynamic home page showing the latest articles. I would like to add a boxes section that is showing there, but not on any other page. I can add boxes and switch them to be invisible by default, but since the start page is not configurable, I cannot enable them on that page. Any secret way of achieving this?

Share this post


Link to post
Share on other sites
cmunns

You can load them everywhere then add this css #boxes {display:none;} .home #boxes {display:block;}

Share this post


Link to post
Share on other sites
fxrescbe

Is that the only way? It's more of a hack. This causes unnecessary load times for all pages because scripts and images are being loaded by the browser that never get used (shown). It might also be suspicious for Google because they do not like invisible content. I

Share this post


Link to post
Share on other sites
Kate

The other option is to create a custom template and using that for the home page only. Instructions on how to do this can be found in the latest releases of platformbase (which is where you'll want to create the custom template). Let us know if you need guidance in creating it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×