Jump to content
sterlingbates

Content on only the first blog page

Recommended Posts

sterlingbates    1
sterlingbates

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
Rob    547
Rob

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.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
sterlingbates    1
sterlingbates

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
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
sterlingbates    1
sterlingbates

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
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

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


×