what widget logic statements have you tried that make the widget always disappear? try these and see what happens:
(should always keep the widget visible)
true
(1+1==2)
(should always make it vanish)
false
(1+1==3)
What should I type in the widget logic box on the widgets page for it to be displayed on a specific page?
The URL of the specific page is http://carrotsandclaret.com/about-town/
I’m a new WordPress user and am having the same issue.
I am using the Responsive theme. Everything is standard, no customization. I would like the Categories widget to appear only on my blog page sidebar (slug is “blog”). It does not appear to be working. Here’s the steps I can repeat to get the same result:
- Drag Categories widget to Main Sidebar.
- Leave Widget Logic text box blank.
- Result: View site and refresh = Categories appear on all pages with sidebar.
- Enter
is_page('blog') in Widget Logic text box.
- Result: View site and refresh = Categories appear on no pages.
- Remove
is_page('blog') in Widget Logic text box.
- Result: View site and refresh = Categories appear on all pages.
alanft, I tried your true-false test. That works.
@mkolber, if that page is your main page the is_page probably won’t work, you may need one of these
http://codex.wordpress.org/Conditional_Tags#The_Main_Page
(note also the note re is_page in the FAQ http://wordpress.org/plugins/widget-logic/faq/ in case that’s not it.)
@alanft, that was it. My front page is static and the ‘blog’ page is the main page with timed posts. I changed it to is_home() | is_page('blog') (the “or” just in case) and it works perfectly.
Thank you!
My widget logic not working. If the active site is my white, blank! Why?
:((((