-
AuthorPosts
-
January 9, 2014 at 10:36 pm #207665
I’ve developed several pages using a sidebar that I’ve created, however it doesn’t actually show up for a few of the pages, even though I have the same settings for every page.
Here are the references:
http://23.22.210.145/wordpress/protection-humour/cartoons/ <– Has proper sidebar
http://23.22.210.145/wordpress/protection-humour/adult/ <– Doesn’t show proper sidebar
http://23.22.210.145/wordpress/protection-humour/consumer/ <– Doesn’t show proper sidebar
http://23.22.210.145/wordpress/protection-humour/enterprise/ <– Doesn’t show proper sidebarI have other pages on my site as well that do the same thing with not showing the defined sidebar and instead showing the pages / categories / archive sidebar.
Am I missing something here? Am I neglecting a setting?
Here are my page setups for the working and non-working pages…
Working: http://gyazo.com/515e906fd6bd59caa0109dc458ac77ba
Non-Working: http://gyazo.com/2c172de81bfd786b732d95dbe883ac0aAs you can see those settings are the exact same.
Hopefully this is enough information to explain the issue I’m having
I look forward to hearing from you.
January 10, 2014 at 11:42 am #207928Hi DaveL77!
Please post the login details here. Set it as a private reply. Deactivate all plugins, see if it fixes the issue.
Best regards,
IsmaelJanuary 14, 2014 at 9:01 pm #209669This reply has been marked as private.January 18, 2014 at 8:22 pm #211652Hi!
Please update Enfold to the latest version (2.4.5).
Regards,
JosueJanuary 20, 2014 at 7:01 pm #212372How do I update to the most recent version.
I have the version downloaded on my computer, what are the steps to installing / updating?
January 20, 2014 at 7:06 pm #212375Hey!
Take a look:
Cheers!
JosueJanuary 20, 2014 at 8:05 pm #212388I’ve updated the theme on my staging page, and the problem still remains.
January 22, 2014 at 9:59 am #213209Hi!
The “PressApps Video” plugin breaks the sidebar. We use following code in sidebar.php
$the_id = @get_the_ID();
to fetch the page id and this plugin seems to break this code. Probably the plugin authors use a custom query in their code to query some posts, etc. but they don’t reset the query afterwards (with: http://codex.wordpress.org/Function_Reference/wp_reset_query ). If they don’t reset the query the get_the_ID() function can’t return the right page id and the sidebar code (which depends on this id) won’t work. As a temporary fix you can try to replace
$the_id = @get_the_ID();
with
$the_id = avia_get_the_ID();
Best regards,
PeterJune 5, 2014 at 5:43 pm #275239Sorry for gravedigging this, but since the recent updates with the theme I’ve lost this in the sidebar.php.
Is there a way to place this code in functions.php of the enfold-child theme so that I never have to run into this issue again???Not entirely sure how I would do this, but it would definitely save the headache of having to go through and change it every site update.
Thanks a bunch!
- This reply was modified 10 years, 5 months ago by DaveL77.
June 6, 2014 at 4:23 am #275433Hey!
Thank you for the update.
If you’re using a child theme, copy the sidebar.php on the child theme folder then do the modifications there.
Regards,
IsmaelJune 6, 2014 at 5:53 pm #275705Perfect, didn’t know I could do this!!
Thank you!
-
AuthorPosts
- The topic ‘Sidebar not changing to custom sidebar / Always showing "Pages" "Categories" etc’ is closed to new replies.