Forums

What is going wrong with my theme??! (8 posts)

  1. cscott5288
    Member
    Posted 2 years ago #

    OK, so after many long and tedious DAYS of designing my first wordpress theme (whoever said it was easy, I want to punch in the balls), I installed it on a test site and get this error:

    Fatal error: Call to undefined function get_sidbar() in /home/newssc3/public_html/hospiceinform.net/wp-content/themes/Btap Theme/index.php on line 3

    I don't understand what is going wrong with my get_sidebar tag on line 3 of index.php ...

    The test site is:

    http://www.hospiceinform.net/

    Appreciate any help.

  2. steyr_commando
    Member
    Posted 2 years ago #

    get_sidebar() not get_sidbar()

    correct your syntax and try again.

  3. ClaytonJames
    Member
    Posted 2 years ago #

    Sidebar is usually spelled with an "e" in theme templates. Unless it was intentional of course.

  4. ClaytonJames
    Member
    Posted 2 years ago #

    Just an after thought... you may want to consider avoiding spaces and upper case lettering in directory names.

  5. cscott5288
    Member
    Posted 2 years ago #

    LOL wow, i feel like a dumbass.

    well now I have this: http://www.hospiceinform.net/

    not much better.

  6. cscott5288
    Member
    Posted 2 years ago #

    I understand what is going wrong btw .. i have missing elements

  7. cscott5288
    Member
    Posted 2 years ago #

    Actually, it wasn't missing elements, it was an extra </div> in my sidebar. Thanks for all your help guys. My only problem now is figuring out why my sidebar is on the left hand side instead of the right ... mysterious.

  8. cscott5288
    Member
    Posted 2 years ago #

    But of course! my sidebar was placed after the post area in the HTML but in the PHP I had it before. problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags