Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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 sidebar

    I 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/2c172de81bfd786b732d95dbe883ac0a

    As 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.

    #207928

    Hi DaveL77!

    Please post the login details here. Set it as a private reply. Deactivate all plugins, see if it fixes the issue.

    Best regards,
    Ismael

    #209669
    This reply has been marked as private.
    #211652

    Hi!

    Please update Enfold to the latest version (2.4.5).

    Regards,
    Josue

    #212372

    How do I update to the most recent version.

    I have the version downloaded on my computer, what are the steps to installing / updating?

    #212375

    Hey!

    Take a look:

    Cheers!
    Josue

    #212388

    I’ve updated the theme on my staging page, and the problem still remains.

    #213209

    Hi!

    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,
    Peter

    #275239

    Sorry 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.
    #275433

    Hey!

    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,
    Ismael

    #275705

    Perfect, didn’t know I could do this!!

    Thank you!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Sidebar not changing to custom sidebar / Always showing "Pages" "Categories" etc’ is closed to new replies.