How to add a shortcode an all articles

Posted in: Newsmag
Post count: 39

Dear team/users

I installed a text to speech plugin in order to speak my articles.
currently I;m using post type block 7 for my text articles.

I want to edit my post template so that the shortcode: [responsivevoice_button] is automatically added just after my written content (and above the comment section)

Is this possible ?

Krs

Post count: 35449

Hi.
This can be done only in theme files, for example the block 7 is using module 6 https://i.imgur.com/lttc5qO.jpg and you need to edit this file wp-content/plugins/td-composer/legacy/Newsmag/includes/modules/td_module_6.php
Hope this will help you!

Post count: 39

Hello Calin

Thanks for the fast response. I was not clear with my post I need to put the short-code under a post not on the main page.
Like here:

https://ibb.co/prZDjtp

Post count: 35449

Hi,
If the shortcode need to be set in post content, what you can do is to set it in the theme panel in ads section (you can set in those sections what you’ll like, is no need to be exactly an AdSense, also you can set as many codes you need), you can choose the section where you’ll like to have the shortcode -> https://i.imgur.com/BREfyFK.png
This is the easiest and saved method that you can use.
Hope it will help you!

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