Hi Simon, As I have said, I tried this with and without plugins and also with and without any ad positioning customisations, but nothing helped.
Currently, I have disabled the ad inserter plugin and have inserted three ads within paragraph by writing ad codes under functions.php as I have explained here: https://forum.tagdiv.com/topic/possibility-to-add-multiple-inline-ads-after-multiple-paragraphs-within-content/
Now, I have removed all the customisations from speeedbooster and it’s currently with default configuration and hence inactive ( because if I don’t remove those codes, it disables the speedbooster plugin automatically due to expected conflict)
I have also sent the login credentials at contact@tagdiv.com so that you can check internally.
Please help me resolve this issue. Thank you.
Hi Bogdan,
After searching a lot on the internet and trying out many things. Here is the code I am sharing for others to use which worked for me.
To add Adsense or any kind of ad codes at after multiple paragraphs. Simply copy this code at the end of functions.php
//Insert ads after second and fifth paragraph of single post content and after the post content. Provided by Bloggingdude.com:
add_filter( 'the_content', 'prefix_insert_post_ads' );
function prefix_insert_post_ads( $content ) {
$ad_code = '<div> Adsense/Ad code goes here</div>';
if ( is_single() && ! is_admin() ) {
return prefix_insert_after_paragraph( $ad_code, 2, $content );
}
return $content;
}
add_filter( 'the_content', 'prefix_insert_post_adsNew' );
function prefix_insert_post_adsNew( $content ) {
$ad_codenew = '<div> Adsense/Ad code goes here</div>';
if ( is_single() && ! is_admin() ) {
return prefix_insert_after_paragraph( $ad_codenew, 5, $content );
}
return $content;
}
// Parent Function that makes the magic happen
function prefix_insert_after_paragraph( $insertion, $paragraph_id, $content ) {
$closing_p = '</p>';
$paragraphs = explode( $closing_p, $content );
foreach ($paragraphs as $index => $paragraph) {
if ( trim( $paragraph ) ) {
$paragraphs[$index] .= $closing_p;
}
if ( $paragraph_id == $index + 1 ) {
$paragraphs[$index] .= $insertion;
}
}
return implode( '', $paragraphs );
}
// Add signature or ad after post content. Provided by Bloggingdude.com:
function custom_content_after_post($content){
if (is_single()) {
$content .= '<div> Adsense/Ad code goes here</div>';
}
return $content;
}
add_filter( "the_content", "custom_content_after_post" );
Simply change the text ‘Adsense/Ad code goes here’ with your own Adsense/ad codes and it will start displaying ads after paragraph-2, 5 and after the post content.
You can change the paragraph number 2 and 5 to your own desired paragraphs.
The only problem I am having with any of the methods I use to insert inline ads is that it is compatible with TagDiv Speed booster plugin. No, I am not talking about only the method I wrote above, but no matter how you include inline responsive ads after multiple paragraphs, it breaks when activating speed booster plugin.
I have raised this issue in detail here: https://forum.tagdiv.com/topic/conflict-between-speed-booster-and-inline-ads-what-can-be-done/ . See if there is any possibility to resolve it.
Thank you 🙂
This issue is only with desktop version. Does speed booster work even when I am using mobile theme?
Also, currently I have left my desktop version broken so that you can look at the issue but please do it asap.
THANK YOU.
Finally I checked it today and it worked like charm.
Thank you so much 🙂
I checked it again and noticed that I have already asked the same question 5months and you have already solved it there 🙂
Here is the link: https://forum.tagdiv.com/topic/how-to-disable-header-ads-on-mobile-for-homepage/
It worked like charm. Sorry and thank you 🙂
It worked. Thank you 🙂
Though I have asked few fonts related questions here- https://forum.tagdiv.com/topic/need-little-help-regarding-fonts-on-my-site/ Please go through it.
Thank you again,
Because I disabled the ad and mobile theme currently. 🙁
I will let you know if I enable it again so that you can give me some code.
Thank you.
It worked. Thank you. 🙂
Hi Bogdan,
I am aware of it 🙂
But it didn’t work even after doing that. 🙁 I am using this code,
.home .td-all-devices{
display:none;
}
Please check the code. Thank you.
Will it work on mobile devices as well if I am using tagdiv mobile theme?
Thank you.
Hi Simon,
Thank you for giving it a look,
Yes, you are right, it does change the content, not translate the same content.
I also want to do so the same, I want to create the my same site for Hindi Language audience too, which will have different content written in the Hindi language ( not translated from English)
I have two specific question.
1. I can create a new category, folder or subdomain where I will publishHindi language content, but I want it to appear on the primary domain. So, as per above example, no matter whether the selected language is English, HindiHindi or Spanish, the URL of the Homepage that appears on the top is always same ie. http://www.wittyfeed.com
How do they do so?
2. We do the Hindi language available on NewsPaper theme. What if I select the Hindi language under language option on this theme, will it automatically translate my English content to Hindi or will it give me the option to write new content in the Hindi language? How is it different from Google translator or Google Hindi Input tools?
Is there any known way to you to do what http://www.wittyfeed.com has done with language selection option?
Thank you.
Hi ohmichea,
Yes. It was all secretly added by Tynt ( now called 33Across). When checked thoroughly and complained about it multiple times, they agreed that they were mistakenly ( ? ) added these codes on my site and hence removed it from my code.
I used it for several months but then left it completely now.
Hey, just to update you all, in the new update, you need to modify a new header file called header-menu-h1.php for this solution to work.
Thank you Pradeep for this great tutorial by the way.
Thank you.
Hey Amit,
It worked. 🙂
Can you try to make it at the actual desired position ie.. bottom left of the centered image?
Thank you by the way.
Hi Catalin,
I forgot to tell you that I use following code to centre the smart list slides.
.td-slide-smart-list-2{
text-align: center;
}
In you example, smart list images are in the default left position, hence it appears at the right position.
If it’s not possible to define the position of image caption, when images are centered, kindly give me thoe code to move ‘image caption’ in the bottom center.
Few months before, Bogdan has given a code to do so, but now that code isn’t working 🙁
Kindly try. Thank you.
Hi, Yes, I am aware of the additional plugins but as you said, post navigation appears in the footer of the post, just after the post bottom ad ,
I want it to appear before the post bottom ad, where should I move the “get_post_pagination’ code so that it can appear before bottom ad, not after it.
Because even if I move the additional plugin codes between pagination and end of the post, it will still appear after ‘content bottom ad’ and in my case, content bottom ad is a native ad and it is creating a big gap there.
If there is no way to move ‘post-pagination’ code before ‘content-bottom ad’, kindly instruct me this ‘do_shortcode’ method to achieve the same result.
Thank you so much.
Hi Catalin,
I will try whatever you have said above and let you know if I still face the issue.
Thank you,
Hi, you get it right.
This image re-size issue is with smart lists only, not on other post types. And it’s not just about the small size, even if I have uploaded an 800*500 image and I want it to be of medium size ( medium size set under media section for 600px width), it will still take the original size.
You have confirmed that it happens with smart lists. But why? We need the default media features here as well because many of smart-lists used to be fact base and hence we need to choose historical images, and mostly we don’t get high-quality images from old days.
SO, I request you not to restrict us using the default media features on smart lists as well.
Thank you.
Hey, Thank you… Though it’s as I wanted it to be .. but still it’s working.
Thank you again 🙂
I am waiting for the solution as well.
Let me know if you figure it out Bertel. Thank you.
TagDiv: Being the developer of such a big theme, we indeed expect spam banning solution by default from you guys. Adding recaptcha can be a great thing. Please consider this option in the future updates. Thank you.
I am looking for this answer as well.
Hi Bogdan, Probably it’s a well-known issue as due to some reason chrome or any other browser do not allow autoplay of videos on mobile. There are various search results on Google about this.
Revolution Slider website also has something on this: https://www.themepunch.com/faq/video-not-showing-up-on-mobile/
I tried this method as well, but it didn’t work.
Have you ever been able to auto play videos as background in your testing?
Please let me know if you find any solution to this.
Thank you.
Yes, As I said, it works when I add this to custom CSS, but it doesn’t work if I add it directly at the very bottom of style.css. Here is how I did it:

I am only removing top header, and top navigation with this code:
.page-id-246 .td-header-wrap {
display:none;
}
.page-id-28 .td-header-wrap {
display:none;
}
.page-id-27 .td-header-wrap {
display:none;
}
.vc_separator.vc_separator_align_center h4 { font-size: 30px !important; }
.td-main-content-wrap {
padding-bottom: 0;
}
Yes, I have cleared all cache and everything. Let me know if you want to do further checking.
Thank you.
Yes, As I said, it works when I add this to custom CSS, but it doesn’t work if I add it directly at the very bottom of style.css. Here is how I did it:

I am only removing top header, and top navigation with this code:
.page-id-246 .td-header-wrap {
display:none;
}
.page-id-28 .td-header-wrap {
display:none;
}
.page-id-27 .td-header-wrap {
display:none;
}
.vc_separator.vc_separator_align_center h4 { font-size: 30px !important; }
.td-main-content-wrap {
padding-bottom: 0;
}
Yes, I have cleared all cache and everything. Let me know if you want to do further checking.
Thank you.
Hey Jessie, your welcome. Yes, I hope any TagDiv team will notice this thread sometime.
