WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using Dashboard Widget overides sidebar.php code? (4 posts)

  1. gittyup
    Member
    Posted 5 years ago #

    I used the Dashboard-> appearance-> widget to add some plugins to my sidebar. After I did that my google custom search box and subscribe button disappeared! I looked at the code in the sidebar.php and the original code that was once displayed on my site within the sidebar is still there but seems to be being ignored?

    How does the Dashboard -> Appearance -> Widget work? Where can I go 'see' the code? I want to replace the items that got removed, overlayed or ignored?

    I don't understand the mechanics of this function enough to find my answer. It seems to be a WP software function, but why did it behave this way?

    As a work around this until I can find out the 'what happened and why', I moved my search box and subscribe button to a new location. I would like to be able to have it where it 'once' was if at all possible.

    Thank you for taking the time to read this and hopefully be able to explain this :)

  2. Michael Fields
    Themer
    Posted 5 years ago #

    I recently switched my theme to inove and had the opposite thing happen... I set up my widgets and the rss feed at the top of my sidebar stayed put!

    The theme's creator was able to accomplish this by putting the call to the: if ( !function_exists('dynamic_sidebar') ) conditional statement lower in sidebar.php. You can probably add you google code + button back to the top of sidebar.php and add the if ( !function_exists('dynamic_sidebar') ) somewhere below it.

  3. gittyup
    Member
    Posted 5 years ago #

    mfields!! THANK YOU!!! I added my google box and button above the code and it is all back! I am so happy and very greatful for your help :D

    Cheers!

  4. Michael Fields
    Themer
    Posted 5 years ago #

    You're Welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic