Add php to index.php
-
On the index.php file of my theme, there is a section of html that I would like to add some php too. The html looks like this:
<div id="content"> <div class="col-full"> <div id="main" class="col-left">
I would like to add some php to it using the functions.php file (best practice) but I’m not sure how to do it if its possible. The php i would like to add is
<?php $page = "/"; $currentpage = $_SERVER['REQUEST_URI']; if($page==$currentpage) { gravity_form(1, true, false, false, '', false); } ?>
Is there a hook or filter I can use in order to accomplish this?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Add php to index.php’ is closed to new replies.