Forum Replies Created
-
AuthorPosts
-
Rick AdlamMember
Thanks Brad,
This is the code that worked.<?php
if (!is_page( array ( 33, 51, 61, 75, 77, 78, 80, 81, 84)) ) { ?>
ADSENSE CODE GOES HERE
<?php }
?>I left the footer ads on all pages, but excluded the 'genesis_before_content_sidebar_wrap' Hook "banner ad" and the 'genesis_after_post_title' Hook "banner ad", from only the pages specified.
Lovely.Rick AdlamMemberThanks Brad.
In each hook, I tried to wrap the adsense code with this array, like this:<?php
if( !is_page( array('Privacy Policy', 'Contact Us', 'About Us', Guest Writers', 'Submit Articles', 'Self Promotion',) ) )
; ?>
I PUT MY ADSENSE CODE HERE<?php endif
; ?>I got this error
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/mrmortga/public_html/wordpress/wp-content/plugins/genesis-simple-hooks/plugin.php(123) : eval()'d code on line 1
Rick AdlamMemberI put the Adsense code, and nothing else in Simple hooks.
Rick AdlamMemberHi mkatty,
I'm new to Genesis, but will this help?
You have simple edits plugin installed.
Delete the short codes there you don't want, and leave the ones you want to keep, like I did here below.
In Simple Edits Go to the:
Footer Credits Text: I left this alone, but you could wipe itFooter output: Check box for Modify Entire Footer Text (including markup)? [check this box make your changes in the text area below it]
This is my practice build site at http://www.mrmortgage.com.au/wordpress/ [So you can check the result]
This is the mix of short codes I left, and the HTML I added, to get rid of Genesis credits and add my own.
"<div class="gototop"><p>[footer_backtotop]</p></div><div class="creds"><p>Copyright [footer_copyright] · Mortgage News & Reviews Published By Mr Mortgage · [footer_loginout]</p></div>"
Hope this is what you are wanting to achieve.
Rick Adlam
-
AuthorPosts