4 Responses

  1. Rico Weigand
    Rico Weigand July 28, 2013 at 19:42 | | Reply

    Great. I’m developing at a project which matches perfectly to this article.

  2. Giuseppe Calamita
    Giuseppe Calamita October 19, 2013 at 10:24 | | Reply

    Hello, the point here is if you need to edit a theme that have to be delivered to some other website; it is impossible to keep all of the plugin dependencies the path you show for working with widget does not work in my case. Sorry.

  3. Jessica Bright
    Jessica Bright December 8, 2014 at 20:07 | | Reply

    This is a great tutorial, im searing some widgets for my sites brightverge.com and gocime.com but still unable to search, manually I am creating but every time I edit my theme functions file I end up with an error message. I have double-checked it against what you put up above and can’t seem to resolve it.

  4. Roger Koehler
    Roger Koehler April 27, 2017 at 14:17 | | Reply

    There appears to be conditional widget logic without the need for a plugin, but I can’t get it to work with “tags”. I add a Text Widget, but I only want it to display in the sidebar when specific posts are displayed. I create a tag named “literature”. I add that tag to the posts for my book reviews.

    When I click Visibility when creating the Text widget, I select “Show” if “Tag” is “literature”. But when I display one of the book review posts that has that tag, the widget does not appear in the sidebar. If I specify “Show” if “Category” and select a specific Category I have created, this will work if I have selected that specific category. But the book reviews are in a sub-category and I don’t want to have to add conditions for each book review post I have. That is why I want to assign the same “tag” to each book review, and then conditionally display the widget only if the tag matches.
    Any suggestions?

Leave a Reply