• javy

    (@javiermatosdes)


    My sidebar.php is displayed below. Essentially I’d like to make it so the first widget in the sidebar, subscribe, doesn’t show on the homepage but does show on others. Is there a way for me to code “if not this page then display sidebar with widget”? Or do I have to code it “if homepage then show this, if else show this (sidebar + widget)”

    Thanks!

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • You would need to add a second, independent, widget-capable area to your sidebar and make if conditional on !is_home() && !is_front_page().

    You can always use the Widget-Logic plugin. It allows you to specify which widgets display on each page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make widget not show on front page but show on others?’ is closed to new replies.