• I would like to only show the sidebar on my blog page.

    I found this handy code from a forum post in wordpress archives, but I don’t want it to go to my front page, I want it to go to my blog page (page in question: http://laurenjdesign.com/blog/ ) and I don’t know what text to replace “is_front_page” with:

    “edit your sidebar.php file, found in the theme files in the /wp-content/themes/{theme-name} folder

    put this as the first line:
    ‘<?php if ( is_front_page() ) { ?>’

    and this as the last line:
    ‘<?php } ?>’

    That will cause the sidebar contents to only display on your home page.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Depending on your theme an easier fix may be just to edit the code that generates a page.

    Theres a call to the sidebar which you can safely delete.

    I would paste examples but not at my desk atm. If google doesnt help, post back.

    Thread Starter laurenjohnston

    (@laurenjohnston)

    Further google investigation has solved my problem 🙂
    code I needed was: ‘<?php if ( is_home() ) { ?>’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only show sidebar on specific page’ is closed to new replies.