Nadeem73
Member
Posted 6 months ago #
Hi
I wonder if anyone can help me get Widget Logic working with the mentioned theme. I know it works fine with the default theme as i've tried it.
Also to get it working with Arthemia Premium theme i deactivated all plugins apart from Widget Logic. Its as if when this theme activated Widget Logic is no longer processing the conditions.
Can i debug where problem might be. I've checked the theme has the wp_head(); i the header.php file
Just a shame it's not working. I've also posted on theme forumn.
Thanks
alanft
Member
Posted 6 months ago #
obviously i can't tell you a lot about the code in a paid for theme like that, but one thing you could try for me is editing the sidebar.php
find the code that invokes the dynamic_sidebar you are interested in and before that call, add
wp_reset_query();
see if that fixes it. i've seen this work in a lot of themes that do extra loops - and i've been thinking of adding it as an optional extra in the WL code.
arkitekt
Member
Posted 5 months ago #
Just an update for others, I was able to use this suggestion to make Widget Logic work for me with Arthemia Premium -- I just did as alanft mentioned put the <?php wp_reset_query(); ?> on the line before the dynamic sidebar was called and it worked.
alanft
Member
Posted 5 months ago #
cool - thanks for the feedback. i'm more inclined to include that as an option in the WL code
tommangatt
Member
Posted 1 month ago #
this worked for me too. thanks a lot alanft. (i'm using the free version of this theme; not the premium version.)
the latest version of WL has an option that calls wp_reset_query without you having to edit your theme.
i'd love to know if that option fixed things without you having to edit your theme