Widget Logic Plugin WordPress, Download, Install

Widget Logic Plugin WordPress

Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.

Widget Logic Download Now

Download Now

(If the link does not work)↓

Originals Link WordPress.org

https://wordpress.org/plugins/widget-logic/

How to Install Widget Logic Plugin, Manually

  1. Upload widget-logic.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it. The configuring and options are in the usual widget admin interface.

Configuration

Aside from logic against your widgets, there are three options added to the foot of the widget admin page (see screenshots).

  • Add ‘widget_content’ filter — This allows you to modify the text output in all widgets. You need to know how to write a WP filter, though some basics are covered in Other Notes.

  • Use ‘wp_reset_query’ fix — Many features of WP, as well as the many themes and plugins out there, can mess with the conditional tags, such that is_home is NOT true on the home page. This can often be fixed with a quick wp_reset_query() statement just before the widgets are called, and this option puts that in for you rather than having to resort to code editing

  • Load logic — This option allows you to set the point in the page load at which your widget logic starts to be checked. Pre v.50 it was when the ‘wp_head’ trigger happened, ie during the creation of the HTML’s HEAD block. Many themes didn’t call wp_head, which was a problem. From v.50 it happens, by default, as early as possible, which is as soon as the plugin loads. You can now specify these ‘late load’ points (in chronological order):

    • after the theme loads (after_setup_theme trigger)
    • when all PHP loaded (wp_loaded trigger)
    • during page header (wp_head trigger)

    You may need to delay the load if your logic depends on functions defined, eg in the theme functions.php file. Conversely you may want the load early so that the widget count is calculated correctly, eg to show an alternative layour or content when a sidebar has no widgets.

Video

Screenshots

Widget Logic Plugin WordPress

Widget Logic Plugin WordPress

Plugin Not Working?

If any errors or problems with the plug-in then write comments.

Add a Comment

Your email address will not be published. Required fields are marked *