How to not show AdSense picture in excerpts with Action Hooks Widget Areas

  • Kenji


    I would like to put Adsense (rectangle; 300×250) after post content by using “Action Hooks Widget Areas”.

    Would it be possible NOT to show AdSense image data in the excerpts?

    My steps are as follows;

    1. Enable “Show excerpts in front page” in Excerpts Display Options

    (Appearance > Graphene Option > Display > Action Hooks Widget Areas)

    2. Enable “graphene_before_post_content” in “loop-single.php” at “Action Hooks Widget Areas”

    (Appearance > Graphene Option > Advanced > Action Hooks Widget Areas)

    3. Add the AdSense Code in Graphene After Post Content at Widget

    (Appearance > Wedget)

    If AdSense code is put into the text of post manually, AdSense picture is not shown in the excerpts.

    However, if Action Hooks Widget Area is used, AdSense image data appears in the excerpts.

    Do I have to put AdSense code in every post manually?

    I would be very grateful if someone would help me for this issue.

    Thank you in advance.

    Kenji Uchimura



    What I would like to do is that only one picture is shown in the excerpts.

    I found out that all of the pictures appear in the excerpts if pictures are added from “Action Hooks Widget Areas”.

    However, only one picture is shown in the excerpts if pictures are inserted in the posts.

    It would be great if someone could solve my issue.

    Thank you.



    Kenneth John Odle


    I’m not sure I understand exactly what you want, but try adding this to Graphene’s custom CSS feature:

    .home .adsense_single {
    display: none;



    Thank you for your help.

    What is this code for?

    Could you please see the following URL.

    password: graphene20131001

    It is difficult for you to find the place for password,though.

    I explain my issue with pictures.

    Thank you for your support.


    Prasanna SP


    Install Widget Logic plugin and put is_single() in Widget logic field.

    WordPress Conditional Tags –



    Thank you very much for your information.

    I installed Widget Logic plugin and put “!is_home() && !is_category()” in Widget logic field.

    Finally, AdSense Ad pictures are not shown at Top page and Category pages.

    This is perfect.

    Again, thank you so much.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.