Hello ,
i would like the following Twitter button
<p style=”text-align: justify;”>Suivre @MeilleurduGolf</p>
to appear automatically at the bottom of each article, without me having to add it manually.
Do you know how could i achieve this?
thanks a lot!
Hi,
You can edit the template files for the post style you use and add the code under the content like this: http://screencast.com/t/jERzlsJH7tJ4
result: http://screencast.com/t/mU0LJNnv
Thanks
Hi Lucian,
Thank you for your response.
I did exactly that, but the button doesn’t appear on my website.
Any thought on what my cause this not to work?
thanks a lot
Thierry
Hi,
Please make sure that you check for this changes to the same post template you are also doing this changes as there are 5 different post templates besides the default one and you need to make this changes to each post template file if you want this on every post template: http://screencast.com/t/iwKEc2HZFWM and make sure the you add it as I did and use this code: <p style="text-align: justify;"><a href="https://twitter.com/MeilleurduGolf" rel="nofollow">Suivre @MeilleurduGolf</a></p>
So please make sure you add this to loop-single file then check with the default post template.
Thanks
-
This reply was modified 11 years by
Lucian.
Hi Lucian,
thanks, this works like a marvel!
my only comment is that now the ‘Article bottom Ad’ appears between the end of the written post, and the Twitter Button (and the sharing buttons), like on this example
http://le-meilleur-du-golf.com/les-7-resolutions-golf/
How could i make the ‘Article bottom Ad’ to appear completely at the end of the article, even below the Twitter ‘follow me’ button and below the social sharing icons?
thanks a lot!
Hi,
You can edit td_module_blog.php and put your button like this: http://screencast.com/t/9ScSX51Gm
So you don’t need to edit post template to add your button, it will appear when you set “Article bottom ad” for all post template styles.
Result: http://screencast.com/t/9pORH1sE0
Or you can disable “Article bottom ad” and use the code in Custom Ad from Theme Panel: http://screencast.com/t/jEiryBuubIm and use this code <?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?> in post template that you use bellow social sharing: http://screencast.com/t/BpyDhFWGVM http://screencast.com/t/X8MeA9kLP1C6
Result: http://screencast.com/t/X8MeA9kLP1C6
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi Alin
thanks for your response,
for the first solution, i don’t know where to find td_module_blog.php in my wordpress interface…
for the second solution, i discovered that each time i try to use ‘Custom Ad’, the format of the ad changes and goes from a horizontal banner, which is what i want (728×90), to a square format (300×300), … i think it is a bug.
Any thoughts?
thanks a lot
Hi,
The article bottom ad will always be added to the end of the post content when used meaning that you twitter button will appear after the art bottom ad.
The best solution would be to add it in the td_module_blog.php file like Alin suggested above, you can find the file in theme’s root > includes > modules > module_modifier > td_module_blog.php then add the line as in the screenshot: http://screencast.com/t/9ScSX51Gm
This is the line I’ve added: http://pastebin.com/9ejhf4iq
Thanks
