Hi there,
Am looking to put ads under the article.
For example this is a current article using NewsMag theme:
http://www.tntreport.com/sweden-cuts-rates-below-zero-launches-qe/
But I want to be able to place ads like in this where it says “What’s Popular Now”:
http://www.hangthebankers.com/mcdonalds-food-destroys-gut-health-in-10-days/
To place the ad it uses simple javascript.
If I place it with the “Article Bottom Ad” it places it inside the article and leaves a massive space between it and the end of the post.
Can you please help?
Having OutBrain and Taboola type ads is very common so I’m assuming I’m not the first to ask.
Thanks in advance,
TNT report
Hi,
You can try to place your code in “Article bottom ad” so I can inspect this and try to provide you a css solution for that space.
Also if you wnat to place your ad bellow share button like in your example you can try to paste your code in a custom ad and use do_shortcode function to display it after bottom social share – http://screencast.com/t/2EynJrxz
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Result: http://screencast.com/t/b1AiHmv0T3
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi Alin,
Thanks for your quick reply.
If I place the ad in “article bottom ad” it places it and the custom ad 1 above the ‘share’ and ‘tags’.
Placing it in the custom ad 1 on it’s own and editing the code is working best so far (http://www.tntreport.com/sweden-cuts-rates-below-zero-launches-qe/), but for some reason leaves a large gap from the ads to the bottom of it. Even if I edit the images to be smaller.
FYI, the same coding works fine on my other 2 sites (using different themes) for this ad, so am assuming the issue might be theme coding related.
What else can we try?
Here’s the CSS editing I did based on your recommendation:
http://www.tntreport.com/wp-content/uploads/2015/05/Screen-Shot-2015-05-19-at-8.40.59-pm.jpg
Also, do you know how I can remove the area where it says “NO COMMENTS Comments are closed.”?
As I will not be having comments in any of the articles on the site.
Thanks
FYI, when I placed it in “article bottom ad” it also left the large gap.
Ok have pasted the ad both in “article bottom ad” and in the custom ad for you too look at.
Both ads now appear within the article (not under) and still have the large gap under them.
Let me know how you go…
Hi,
I have checked your ad and this gap comes from your code, please take a look – http://screencast.com/t/2lci5PzD
The custom ad container have only this margin – http://screencast.com/t/OtLd4ycy
If I hide that class from the code it looks – http://screencast.com/t/PRdk7Ri18n
Thanks!
I entered the code you put and it has done the job.
I’m assuming it won’t cause problems elsewhere in the site.
Thank you 🙂
Hi, my ad under articles has now disappeared?
Can you please have a look and tell me why and how to fix?
Thanks
tntreport.com
I think it disappeared with the recent theme update.
I went in and put the coding in again but it won’t show.
Ok, now is working.
However how do I move the widget one space to the right?
(so it’s not sitting on the left border of the article frame)
-
This reply was modified 11 years by
WakeUpCallProject.
Hi,
Please try this custom css in Theme Panel > Custom Css: http://screencast.com/t/pIhWl8tatHQf
.td-ss-main-content #ac_55600 .ac_adbox {
text-align: center !important;
}
Thanks!
Thanks, that worked.
Except the text “Popular Content” is still hard up against the side.
How can I move that a few spaces across?
Hi,
Use this: http://screencast.com/t/XjZk85D22
.single #ac_55600 .ac_header_title {
margin-left: 25px;
}
Thanks
Hi guys,
This keeps on being removed every time the theme is updated.
It’s really frustrating.
Is there a way of putting it in the theme somewhere to put ads under the actually article?
It seems like such a stock standard thing on all the news wordless news/magazine themes.
I really like the newsmag theme otherwise but this seems like something that needs to be addressed with a permanent fix.
Hi
When you update the theme the old files are overwritten by the new one, except those from child theme and all custom modification you did will be lost. Please check the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks!