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.
get_sidebar() not get_sidbar()
correct your syntax and try again.
ClaytonJames
Member
Posted 2 years ago #
Sidebar is usually spelled with an "e" in theme templates. Unless it was intentional of course.
ClaytonJames
Member
Posted 2 years ago #
Just an after thought... you may want to consider avoiding spaces and upper case lettering in directory names.
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.
cscott5288
Member
Posted 2 years ago #
I understand what is going wrong btw .. i have missing elements
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.
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.