How to not show AdSense picture in excerpts with Action Hooks Widget Areas
-
I would like to put Adsense (rectangle; 300×250) after post content by using “Action Hooks Widget Areasâ€.
http://docs.graphene-theme.com/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.
Kenji
Mod
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.
http://spiwisdom.com/blog/inquiry-graphene
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.
Kenji
Install Widget Logic plugin and put
is_single()
in Widget logic field.WordPress Conditional Tags – http://codex.wordpress.org/Conditional_Tags
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.