Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Jonathan,

    don’t forget to close your IF-Statemant width endif;.

    There are also some syntax errors in your HTML. You put ‘<p style…’ in your ‘<div id=”…’.

    Try this:

    <?php if (is_page('2')) : ?>
    <div>
    	<p style="text-align: right;">
    		<a href="http://tmmslynn.com/parents-corner/">
    			<img src="http://tmmslynn.com/wp-content/uploads/2016/03/button-for-parents-corner-final.png" onmouseover="this.src='http://tmmslynn.com/wpcontent/uploads/2016/03/button-for-parents-corner-2-final.png'" onmouseout="this.src='http://tmmslynn.com/wp-content/uploads/2016/03/button-for-parents-corner-final.png'"/>
    		</a>
    	</p>
    </div>
    <?php endif; ?>
    Thread Starter tmmslynn

    (@tmmslynn)

    Thank you very much for the reply. Now my problem is that I don’t know where to put it. My site is here

    I added it to my page-fullwidth.php file and I can see it but now it doesn’t do what the mouseover should do.

    Any thoughts?

    Hello tmmslynn,
    for me it works (got an image with “Click here to visit”), does it work already?

    Thread Starter tmmslynn

    (@tmmslynn)

    Yes it is working because I added it directly to the page text editor. I would rather it be added differently so I can use the visual editor and not worry about some of the html disappearing though.

    Any thoughts?

    Yes, one option would be to create a page template:
    Start reading here: Page Templates

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adding html to main page’ is closed to new replies.