WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Suppress widget for entire path (1 post)

  1. jsmith33324
    Member
    Posted 5 months ago #

    When our WP site serves up content from a few different paths, we want to provide different sidebar widgets.

    For example we want our "standard" set of widgets to appear on:

    http://www.site.com/contact-us
    http://www.site.com/local/area

    But we want a different set of widgets to appear on these, all under the "/path" path:

    http://www.site.com/path/content1
    http://www.site.com/path/content2

    We have used the following to no avail:

    strpos($_SERVER['PHP_SELF'], "path")!==true
    strpos($_SERVER['PHP_SELF'], "path")===false
    strpos($_SERVER['PHP_SELF'], "/path")!==true
    strpos($_SERVER['PHP_SELF'], "/path")===false
    strpos($_SERVER['REQUEST_URI'], "/path")!==true
    strpos($_SERVER['REQUEST_URI'], "/path")===false

    Any assistance would be greatly appreciated!

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

Reply

You must log in to post.

About this Plugin

About this Topic