Jump to content

WordPress pagination: How to display sidebar content on front page only?


Recommended Posts

I need to place sidebar content on my WordPress blog that appears on the home page only.

 

This means the content should display only at mysite.com and not at mysite.com/page/2/

 

Normally, I would just create a new sidebar.php template. But in this case, both the home page and inside pages use the same home template, index.php -- which means they both use the same sidebar.

 

Is there a conditional statement, perhaps using the WordPress tags is_home and/or is_page, that would allow me to display a different sidebar on inside pages?

 

Thanks.

  • 2 weeks later...

You need widget logic: http://wordpress.org/extend/plugins/widget-logic/

with this you can show content on front page, single page/post, page etc.

 

now if u like my idea then please visit my blog and add bookmark to bookmarking sites! :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.