Add Code in Single Post

Posted in: Newsmag
Post count: 1

Hello,

I want to add a specific code at the end of my post, before I did it in the Loop-single. but now with the new update, I can’t add my custom code at the end of each post.

Post count: 35449

Hi,

You still can do this, but you need to check in a different place -> wp-content/plugins/td-composer/legacy/Newsmag/parts/single/loop-single-1.php or for default post template wp-content/plugins/td-composer/legacy/Newsmag/loop-single.php also you can use a child theme as in our guide from here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Post count: 25

Im trying to remove the Post Title from post template style 7.

Ive added it here wp-content/themes/Newsmag-child/legacy/Newsmag/parts/single/loop-single-7.php but it doesnt seem to work. Where is the file supposed to go?

Thanks!

  • This reply was modified 5 years by aspirin29.
Post count: 35449

Hi aspirin29,
Please make sure that you set both files for post style 7 in child theme -> https://i.imgur.com/SJjf4qk.png in this way it should work.
Let me know the results!

Post count: 25

So I have added both files to the child theme, the loop has been edited but still doesnt work. It works fine if I edit the file in the plugin.

https://www.dropbox.com/s/k8a2b7o3sb94rqs/Screenshot%202020-11-16%20at%2013.02.00.png?dl=0

  • This reply was modified 5 years by aspirin29.
  • This reply was modified 5 years by aspirin29.
Post count: 35449

Hi,
For me is working, I set the files in the same path as you -> https://i.imgur.com/CBM7a2u.png move the title under the elements from header, I made sure that the child theme is set as theme -> https://i.imgur.com/r3ctq2O.png results -> https://i.imgur.com/6Pn6vIh.png
Thank you!

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