Archived

This topic is now archived and is closed to further replies.

  • 0

Content on only the first blog page

Question

Posted · Report post

I was looking for an easy way to add sections (eg features, boxes, anything boxes) to only the first page of the blog pages.

 

This would be just a "fancier" version of the magazine layout in practice.  A way for the editors to set content that shows up on the first page of the blog but then doesn't show on other blog pages.

 

Any thoughts on the best way to do this?

 

I am open to suggestions that include premium elements from the store :).

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

I have done several different static page versions.  I loved using Anything Boxes to do that.  

 

Doing that means I have to either make sure and replicate all the posts from my first page and then send them to the second page.  Or when they go to the first page of the blog it doesn't have all that extra formatting.

 

I didn't want to recreate the blog page, I want to use it.

 

Could I use the page specific css plugin and then do display none on the elements I don't to show up by default, then on the first page of the blog, set it to display?

Not sure if that plugin allows for that?

 

Any other methods?

 

Thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Sterling Bates

 

Yes you could use page specific css to hide elements on the first page of the blog. You'd probably need to set the section to 'hide by default' on the blog template, then use the page-id to assign them only to the front page by using css to set them to display.

Share this post


Link to post
Share on other sites

Posted · Report post

Hmm, I just looked at the plugin to do page specific code and it has the same problem I still have.  It sees the blog as one option and not the sub pages eg. 1 vs 2 as different pages.  No go on that one.

 

Anything else? 

 

Any way to do this?

Share this post


Link to post
Share on other sites

Posted · Report post

It appears you're trying to modify the loop.  You may be best asking your fellow developers in the developer skype group.  They may have some different insights.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

Well, if you are creating a static blog page with a particular template layout, showing only X number of posts using Special Recent Posts, you can

  • link to the default blog page manually at the bottom of the static page;
  • use the static page's id number to craft the hiding of some elements by CSS.
  • use a specific template for things like the features, carousel, etc.

Share this post


Link to post
Share on other sites