WordPress.org

Ready to get started?Download WordPress

Ideas

avoid running a widget code when the widget is not displayed on sidebars

  1. goidxmario
    Member

    When you run a website with multiple sidebars and you want to display a different sidebar on a single page that is different from your index page the widget code that is attached to the wp_head still loads.

    The only way to avoid the loading of the code is if you uninstall the plugin. Not all websites display all the sidebars you create at once.

    It would be nice that if WordPress can detect that if the widget is not on the sidebar that is currently running (displaying) that it does not load the code introduced by the widget.

    Posted: 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    2 Votes
  • Status

    This is plugin territory