Add shortcode to all posts

Posted in: Newsmag
Post count: 16

Hello.
I need to add a shortcode to all the posts in my website, but I don´t found where I have to add the php code:

What is the file to edit and Where is it?

Thank you

Post count: 35449

Hi,
If you need to edit the theme files to set your code, then you need to edit the files that correspond for the post style that you are using, for example if you are using post style 1 the file path is -> wp-content/plugins/td-composer/legacy/Newsmag/parts/single/loop-single-1.php -> https://i.imgur.com/GMCyLr7.png if you make changes in those files, it will be better to set them in a child theme, making this the changes will not be lost when the theme will be updated.
I hope this will help you!

Post count: 16

Thank you. I use the Default style. Is loop-single-1-php ?

Post count: 35449

Hi,
No, the loop-single-1-php is for post style 1, for default is this one -> wp-content/plugins/td-composer/legacy/Newsmag/loop-single.php
Let me know the results!

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