Results 1 to 5 of 5
Thread: defining a function in wp
Feb 15, 2013, 10:06 #1
- Join Date
- Oct 2010
- Portland, Or
- 2 Post(s)
- 0 Thread(s)
defining a function in wp
I am working on a wp theme. first time really, rather than to start from absolute nothing (that'd be the next try)...
Grabbed a very simple super minimalist template (thanks to zenhabits.org). And for example, wanted to add a sidebar to it.
so in the index.php I added.
the get_sidebar(); function
I do have a sidebar.php in the correct directory.
but get this error msg.
"Fatal error: Call to undefined function responsive_widgets() in C:\xampp\htdocs\wordpress\wp-content\themes\zh2\sidebar.php on line 5"
where do I add/specify functions? is the wp-includes>functions.php the best place?