How to Remove HTML Insert from One Page Only?
Hi. I have the following code at ATO>HTML/CSS Inserts>Body Top:
Code:
<div style="text-align:center; width:1119px; margin-left:auto; margin-right:auto;"> Thank you. |
I haven't tested but you could give this a shot. It is saying to use that code when not on the home page. Let me know if it works.
HTML Code:
<?php if( !is_home() ) { ?> |
Would I just tack that on to the end of header.php? If so, I tried that and no cigar. Actually, it seemed to have the reverse effect, where the image map appeared only on the home page instead of removing it from the home page. Any other thoughts? Thanks again.
p.s. Would it help or make any difference to know that I have set Home as the static front page of the site? |
I was thinking of putting in ATO>Add HTML/CSS Inserts>CSS Inserts
|
Sorry to say this didn't do the trick. When I put your code at CSS Inserts, it did in fact remove the image map from the home page, but now it's not appearing anywhere else either! How do I make it appear on every page EXCEPT the home page? Thanks for working on this!
|
Add an ID to the div like: <div id="one_page">....</div>
then in the CSS Inserts use a HTML Code:
body #one_page {display:none;} |
Juggledad, thank you very much for your reply. I placed an id in the div so that it looks like this:
Code:
<div id="tjicco_header" style="text-align:center; width:1119px; margin-left:auto; margin-right:auto;" I then placed your two lines of code at CSS Inserts with the page id, like this: Code:
body #tjicco_header {display:none;} |
sorry, I read teh post wrong, If you just want is gone on the home age use eithor
HTML Code:
body.home #tjicco_header {display:none;} HTML Code:
body.page-id-6 #tjicco_header {display: none;} HTML Code:
body #tjicco_header {display:none;} |
Yep, that did it! And it's two birds with one stone because I've found the first info you gave for making it appear on one page only, useful as well. Thanks so much for taking the time! Please know that I will be leaving a donation asap..it's just that I am living in Germany right now, where I have not found work, so I am supporting myself with website creation. So right now I am having to rely on your guys' good graces, but a donation is forthcoming..goodness knows the help you guys provide is worth it!
Thanks again to you both! Eric |
Quote:
|
All times are GMT -6. The time now is 05:50 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.