Hi,
I’m trying to implement the following code into single_template_2 to replace the original Newspaper theme top share section. I know where to put the code but when I place it the right sidebar pushes down, unlike the original theme share buttons. Any help would be great.
<?php echo do_shortcode('[easy-social-share buttons="facebook,pinterest,twitter,reddit,more,google,linkedin,stumbleupon" morebutton="1" counters=1 counter_pos="insidename" total_counter_pos="hidden" style="button" twitter_user="cruisehive" twitter_hashtags="#Cruise #Travel" hide_mobile="yes" point_type="simple" facebook_text="SHARE" twitter_text="TWEET" google_text="-" pinterest_text="PIN" linkedin_text="-" stumbleupon_text="-" reddit_text="-"]'); ?>
You can see the difference in the images below:
Before using Newspaper share buttons, look at the sidebar as it’s in correct position – https://photos.app.goo.gl/Oh0RxIVL992Kt1ft2
After adding the Easy social share code, sidebar gets pushed down which I don’t want – https://photos.app.goo.gl/y8qI4Wmp7RN0zY7y1
I solved it thanks so much. I do have another issue though so hope it’s ok adding it in this thread.
I’m using the “Gadgets” demo settings but by using this the header ad doesn’t function even if the code is in the header ad section in the theme settings. How to solve this? My site is https://www.cruisehive.com
Hi,
There is a condition in that particular demo that hides the header ad. You can either edit the demo file and remove it
– https://www.screencast.com/t/6EkG80xU3
Or enter this code in the Theme panel->Custom CSS
– https://www.screencast.com/t/e33sDjo4duK
.td-gadgets .td-header-style-5 .td-banner-wrap-full {
display: block;
}
Thanks
Thanks Simion. Is there also a way to center the ad and not make it full width? The ad sometimes changes small and displays on the left instead of the center.
I also can’t add more than one code in the “article bottom ad” section. I would like to add a google matched content and one more ad but not working or displaying correctly.
Hi,
You can try a code like this to make the header ad centered and not stretched
– https://www.screencast.com/t/a3wFZphn2
.td-header-style-5 .td-header-sp-recs {
width: 728px;
margin-left: auto;
margin-right: auto;
float: none;
}
There is only one article bottom ad available at the moment
– https://forum.tagdiv.com/article-ads/
You will have to modify the post template files, and insert the ads manually. Or install a plugin like Adrotate that would have more options regarding ad placement. This plugin is seems to work with the theme based on positive user feedback.
Thanks
Ok the header ad is solved and really is a shame only one code can be used. I don’t have a way of adding anything else unless I use a plugin which will slow the site down.
Ads really are strange on this theme and now I’ve noticed that Adsense matched content works fine when adding the code through composer or somewhere on a page manually but if I add the code through the Newspaper theme settings on footer or in Bottom post ad spot it doesn’t display correctly. Something is wrong with this as seen in the photo below where in footer it doesn’t display correctly but in composer and manual input is fine.
Hi,
Matched content ads were not really tested with the theme. There are solutions posted on the forum that you could try, if you would like to try and place them on the post pages as well. You could try and use a shortcode to insert them in the post template files for example
– https://forum.tagdiv.com/topic/ads-shortcode/
It would maybe be easier to use a plugin for this however.
Thanks
Thanks, I will implement the shortcode by editing the template. Will Newspaper test the matched content in the future as it is very important?
Also, the css code provided above to make the header ad center doesn’t work on mobile, how to fix this?
.td-header-style-5 .td-header-sp-recs {
width: 728px;
margin-left: auto;
margin-right: auto;
float: none;
}
Hi,
It could be a possibility, but I can’t say for sure when it will happen. It will be announced when the theme will officially support different ad implementations.
Sorry, I did not test te code on mobile as well. You can enter the code I provided in the Theme panel->Advanced CSS, in the desktop section so it only applies on desktop.
Then on mobile it will look like this
– http://prntscr.com/g3vzrj
Thanks
The only way I got matched content to work was by placing the actual adsense code within the template. I did try the short codes but the same issue came up. So the issue is related to the theme and the coding. Hope it can be resolved in the future. Thanks for all the support.
