WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Widgetizing Theme Headache (4 posts)

  1. AlyciaAnimation
    Member
    Posted 6 years ago #

    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.

  2. Darran
    Member
    Posted 6 years ago #

    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.

  3. lelandf
    Member
    Posted 6 years ago #

    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/

  4. AlyciaAnimation
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic