Labeling Adsense Ads with Advertisement

Posted in: Newspaper
Post count: 28

hi guys,

thanks for your support.
im trying to label my adsense ads in theme standard slots.
But the theme´s standard slots only detects the adsense script but no other text or html.
i would like to insert a label like this:

<div style=”
border-bottom: 1px solid #ccc;
width: 336px;
text-align: center;
margin-bottom: 8px;
margin-top: 8px;
“>
<span style=”color: #666666;”>Advertisement</span>
</div>

i would be very happy if you can give me a hint how to do this with the standard adsense slots.

thank you!

Post count: 9544

Admin – likely time for a FAQ/tutorial on this one, too 😉

Post count: 9544

Easy to do with sidebar ads.

I think the way many folks have been doing this is by editing the ad module — but wait for TagDiv to give pointers on that.

You could try searching forum as it’s a very old topic at this point.

In our site, we added it to the sidebar ads with text box — for the big banner ad across top below logo/menu above content we dedided it was redundant since obviously an ad.

Post count: 28

hi chris,

thanks for your reply.
so i mean i wanted the ads in my content automatic at the bottom and and the top for example.
like u said it is working without problem in a text widget in a sidebar.
but not with the given ad slots.
you know in which file i can find the ad modules?

thanks

Post count: 28

i found this forum post:

https://forum.tagdiv.com/topic/add-advertisements-warning-before-ads/

but this didnt work for me.
so i could insert the text but it appeared for both ad slots (top and bottom)
in the top of the content.

and additionally to that could you also tell me the same for the custom ads which i inserted in posts?

thx

Post count: 22421

Hello,
I tested the method from the post again and it still works. You simply need to follow along with the instructions and copy over the piece of code provided. there are 2 places in the code for an article top and article bottom ad: http://screencast.com/t/qsUId1pGv8
If you only need one of them do not add the code in both places.
As for the second request you need to be more precise as to how you are inserting your custom ads.
Thank you!

Post count: 28

Hi Bodgan,

thank you for your help!
so as u said it´s working when i put it like provided in the top slot in that file.
but i want it that it appear also in the bottom ad.
when i put it twice the label appear two times in the top of the content.

so how can i do this also for the bottom ad and the ads i inserted with shortcodes in editor into content?
for example i put the [td_block_ad_box spot_id="custom_ad_1"] into content with editor of the ad tag inserted adsense code in custom ad slot 1.
so the ad is appearing on my website on given place. but i need also that there is appearing the label.
so for now i cannot edit the custom ad slots the bottom ad section.
thank you!

Post count: 28

and also what about the article inline ad?
can i add them also a label?

thx

Post count: 28

so. i have put in the code as u said and it worked for those 3 places. yes!
thank you!

where can i find the places to put the given code to the custom ads?

thx

Post count: 22421

Hello,
For custom ads you do not need to edit anything as you get the sortcode from visual composer. The ad box in visual composer allows you to add a title to it so the sortcode will look like so:
[td_block_ad_box spot_id="custom_ad_1" spot_title="Advertisement"]
Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.