[resolved] Reinstating default sidebar settings to be able to add widgets (4 posts)

  1. LeilaJo
    Posted 4 years ago #

    Sometime in the last year I overwrote the sidebar settings with some custom html code. It was not a good idea as now I cannot add widgets to the sidebar. Of course, I do not remember what I did or what the original code looked like (live and learn).

    I'd like to reverse what I did but am stumped. Any pointers?

  2. LachlanM
    Posted 4 years ago #

    If you know what theme you are using, open up the archive of the original, find sidebar.php and open this in an editor, notepad will do.

    If you have not made any other modifications to your sidebar file that you are worried about losign then just copy all the contents of sidebar.php from your original install archive.

    Browse to Appearance > editor in your WP admin. A list of theme files should display down left, click sidebar.php and paste in the code from your original.

    If you have made modifications you wish to keep you will need to identify the code that needs to be replaced and only paste that in.

    Hope that helps.

  3. LeilaJo
    Posted 4 years ago #

    Ok, I found the archive file and reinstalled the original code in the sidebar.php file. Thanks!

    However, when I go to Appearance > Widget, I am still unable to drag any available widgets over to the sidebar.

    Any ideas on what may be up?

  4. LeilaJo
    Posted 4 years ago #

    Figured it out - thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic