adding html to main page
-
Hello,
I have some HTML I am trying to add to my home page, but I do not want to put it in the text editor, mainly because it disappears if I switch back to visual editor and that is a pain I do not want to deal with. That being said where can i add it? I tried inserting it into php and adding it to my index.php file with no success. Here is what I am working with `<?php
if (is_page(‘2’)) :
echo ‘<div id=”<p style=”text-align: right;”><a href=”https://tmmslynn.com/parents-corner/”><img src=”https://tmmslynn.com/wp-content/uploads/2016/03/button-for-parents-corner-final.png” onmouseover=”this.src=’https://tmmslynn.com/wpcontent/uploads/2016/03/button-for-parents-corner-2-final.png'” onmouseout=”this.src=’https://tmmslynn.com/wp-content/uploads/2016/03/button-for-parents-corner-final.png'”/></a>”></div>’;
?>`Is this correct?
Any help would be appreciated.
Jonathan
- The topic ‘adding html to main page’ is closed to new replies.