Support » Themes and Templates » adding html to main page

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')) : ?>
    	<p style="text-align: right;">
    		<a href="">
    			<img src="" onmouseover="this.src=''" onmouseout="this.src=''"/>
    <?php endif; ?>

    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?

    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.