Widget Logic
New Information Shows in Place of Widget (2 posts)

  1. eveeveeve
    Posted 3 years ago #

    Hi, ever since I updated to the new version of wordpress the following error occurs. On the pages that show the widgets that are hidden the following information:

    Primary Sidebar Widget Area

    This is the Primary Sidebar Widget Area. You can add content to this area by visiting your Widgets Panel and adding new widgets to this area.

    How do I get this to disappear?

    I have the following formula in each widget I don't want to show:

    !is_page( array ( 'Find a Spa', 'Find a Class', 'Find Yoga', 'Get a Facial', 'Get a Massage', 'Editorial Calendar', 'Spas Near You' ) )


  2. alanft
    Plugin Author

    Posted 3 years ago #

    (i did address this in your post on our main site)

    it is common for a theme to have default text when there are no widgets, and in this case the “This is the Primary Sidebar Widget Area…” text is that default text.

    WL used to only hide widgets, and now it removes them altogether, so themes that have default text when there are no widgets now show. You can either edit the theme to remove the default text, or add a default text widget that's always present but has no content.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic