Forum Replies Created
-
AuthorPosts
-
kavikalynMember
Is anyone else out there able to help?
I need to know what code for conditional tags to put around my Adsense code so ads will show on every page except the homepage.
I'm entering this code in genesis_before_loop and genesis_after_loop using the Genesis Simple Hooks plugin.
Thanks in advance for any help.
kavikalynMemberkavikalynMemberThanks for the help so far.
I tried adding the following to the function.php file:
add_action( 'genesis_before_loop', 'adsense' ); function adsense() { if ( !is_home() ) { echo'Your Script'; } }
And it showed the ads in the correct location but still showed them on the homepage.
I'm not very comfortable with the coding and with creating a widget area so I'd rather just use the simple hooks plugin.
I tried putting the following in the simple hooks plugin:
if(! is_home()) { ?> ADSENSE CODE <?php }
And that didn't work either.
kavikalynMemberThat link was helpful, thanks. So is this right? I want to show the ads on every page except the home page (it's a specific page not my posts page).
if(is_singular()) { ?>
ADSENSE CODE
<?php }And in theory that would show on every single page except the home page and I just paste that code into the simple hooks plugin?
There's no way to do an "is not home page" is there?
kavikalynMemberThanks so much for the help! It's almost exactly how I'd like now.
Is it possible to make the current selected page in a red box exactly like the mouseover link instead of just a plain text number?
Is it also possible to add in next page and previous page buttons like on the homepage as well?
I tried reviewing that link but I don't really understand it...
Thanks again.
-
AuthorPosts