Google requires 404 pages to be ad-free. I have hooked a site-wide 729px ad in genesis_before_loop. How do I remove it on my 404 page (or anywhere else for that matter)?http://goldbuyeru.com
What code did you use to hook it in?
You can add the conditional tag to exclude it from 404 pages.
Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
Brad Dalton has written 1961 Genesis tutorials & 4000+ Code Snippets .
Dynamik has a custom css area which includes conditionals functionality. I added
! is_page(874) && ! is_page(908) which adds the ad on all pages except 404 page (which is set up with a php redirect) and my google custom search results page.
Thanks for the help.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!