• Resolved nozahon

    (@nozahon)


    Hello! My website is displaying “Please Add Widgets” on pages where I do not have any widgets on the sidebar. It goes on to show “Remove this message by adding widgets to the Sidebar from the Widgets section of the WordPress admin area.

    Click here to go to Widget area.”

    How do I get rid of this message?
    I don’t want the visitors to see this text being displayed.
    My site is: tpxtech.com

    Thanks for your help!

Viewing 1 replies (of 1 total)
  • Hi, @nozahon. It looks like that output is coming from the theme’s sidebar.php file; so, if you wanted to suppress it, you could create a Child Theme, then copy that file over to it and make edits to that copy.

    And if you were to just change this line:

    <?php if ( ! dynamic_sidebar( thinkup_input_sidebars() ) ) : ?>

    to look like this instead:

    <?php if ( ! dynamic_sidebar( thinkup_input_sidebars() ) && is_user_logged_in() ) : ?>

    then that should hide the message from your visitors, while keeping it visible for you whenever you’re logged in.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting rid of the "Please Add Widgets" on site’ is closed to new replies.