Categories: Wordpress Plugin

Widget Logic Plugin WordPress, Download, Install

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

(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

Plugin Not Working?

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

admin

I am are a 5 years has been a freelancer, engaged in web design, website building.

Recent Posts

Where To Buy Cheap Domains ?

Recently I came across a site where you can buy cheap domains. (more…)

9 months ago

error displaying the error page session not exist joomla

If an error occurred when installing the site on Joomla or moving the site -…

9 months ago

Hosting Hawkhost Doesn’t Work July 2023

Identified - Our upstream provider has confirmed this is a facility-level network issue. We will provide…

10 months ago

How To Center Text In Gimp

Today I'll show you how to center text in Gimp. It's very simple. Believe me.…

10 months ago

ROBLOX BALLER

For many years on the Internet there has been a game called Roblox. You can…

10 months ago

Artists And Zodiac Signs

Of the 130 most famous artists, most of all are Taurus, who have a good…

10 months ago