WordPress.org

Support

Support » Themes and Templates » [Resolved] Widgetizing Theme Headache

[Resolved] Widgetizing Theme Headache

  • AlyciaAnimation
    Member

    @alyciaanimation

    I’m going crazy trying to widgetize my theme that I’m creating. I’ve read the instructions about a hundred times now and I can’t figure out what I’m doing wrong. I added the 2 lines of code in my sidebar.php file and 4 lines of code in the functions.php file, as per the instructions, but it still says “No Sidebars Defined”. (The sidebar is an unordered list and the titles are in h2 tags)

    Then I tried just replacing my sidebar.php and functions.php with the default theme ones, since I knew that the default theme is widgetized, but it still came up “No Sidebars Defined”. This part doesn’t make any sense to me at all. There must be some other piece of code I should have (maybe in the index.php??) or another step that needs to be taken for it to take hold.

    I’m going crazy here 🙁 Thank you in advance for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Darran
    Member

    @darran

    You have to paste your code so that we can find the root of the problem. My guess is that you did not register the sidebar.

    Leland Fiegel
    Participant

    @lelandf

    If it still says “No Sidebars Defined” you probably didn’t do the functions.php properly.

    Try reading this article on widgetizing themes: http://www.themelab.com/2008/04/18/see-how-easy-it-is-to-widgetize-wordpress-themes/

    AlyciaAnimation
    Member

    @alyciaanimation

    OK, um, now I feel like an idiot.

    First off, thank you for the link to themelab.com, I found it much more useful than the automattic site.

    After lots of trial and error, trying to weed out what was going on, I finally found where I was making the mistake. Um…I had named my functions.php “fuctions.php” (missing a critical “n”), gosh that’s embarrassing. ::holds head down in shame::

    Thank you so much for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Widgetizing Theme Headache’ is closed to new replies.