I am trying to figure out how to hard code the widget into the homepage of our site. I know I have to put it in the index.php file and I know where I need to add it, but I can’t figure out the right code to add.
Good question. I think your best bet here is to create a new widget area that is tied specifically to your site’s homepage and include that widget area in the template. That way, you can drop the event widget into that area under Appearance > Widgets, while having it coded directly into the template.
Check out the links in my last reply. Those will walk you through how to set up a new widget area in your theme, then include it in the template. You can then drop the event widget in that widget area in the Appearance > Widget area of WordPress. 🙂
Hey there, Katie! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to start a new thread if you still have questions here and we’d be happy to help. 🙂
Cheers!
Geoff
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Hard Code widget to home page’ is closed to new replies.