In your custom_functions.php file add this code. You can put it anywhere you want but I recommend putting it at the top after the <?php tag. Always describe the function and put it between the comment tags /* */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…
/*this function makes an image show up on only one page*/
function name of your function() {
if (is_front_page() ) {
echo ‘<div id=”box1″>
Insert your html, php, or javascript stuff here….
</div>’ ;
}}
add_action (’thesis_hook_before_content’ , ‘name of your function‘);
Note the following…
Name your function whatever you want
The if statement means that whatever follows after it will only show up on the front page
Hook it wherever you want
Use the hook map for a reference











If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...
Go ahead, leave a comment...