Inserting widgets in PHP code?
-
OK I’m fairly new to WordPress but I have a problem that should be fairly easy to solve, except I can’t find the solution online.
I’m using the Gridline theme which uses a separate front page. So all the wonderful widgets I add to the sidebar don’t show up on the front page. I want to display the text widget on the right side of the front page, sounds simple.
I’ve found the file to alter it’s /wp-content/themes/gridline/library/apps/featured.php. I’ve managed to insert the datafeedr ads on the front page by just pasting the template code: <?php if (function_exists(‘dfrads’)) { echo dfrads(‘xxxxxxx’); } ?>. Works great but how do I do that with other widgets, specifically the text widget. Does it have a template code?
I’ve already wasted a couple of hours searching for the answer so I’m hoping someone will have some insights.
M
- The topic ‘Inserting widgets in PHP code?’ is closed to new replies.