I have a plugin that currently displays towards the bottom of the header and the code produces several images horizontally linking to another page. I want to place the code so that it displays this plugin content below the page content and before the footer. The front page is where this code currently resides and the content is a static page as opposed to blog. I tried placing the code in both single.php and page.php, but it displays at the top of the page, instead of where I wanted it.
Am I targeting the right template file and if so where within the template should I place the code?
]]>Best guess? I’d say you need to keep the code in the front-page template (assuming you want it to be on your home page, but not your interior pages), but move it towards the bottom of the file. Look for the “loop” that prints out the page content and put it somewhere below the closing “endif;”
Hope that helps.
]]>I figured out it was absolutely positioned CSS that made the plugin code appear all the way at the top of the page, so adjusting that worked.
]]>