Forums

How to make widget not show on front page but show on others? (3 posts)

  1. javiermatosdes
    Member
    Posted 2 years ago #

    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]

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    You would need to add a second, independent, widget-capable area to your sidebar and make if conditional on !is_home() && !is_front_page().

  3. bigchezmktg
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic