Child Theme

Posted in: Newsmag
Post count: 28

Hi
I have to change the child theme but I can’t.
As with any other themes, I copy a file that interests me (e.g. single.php) from the main theme to the child theme, then I make the change, but it doesn’t appear. I have no problem modifying header and footer instead.

How can I fix it?

Post count: 35449

Hi,

The child theme must be use as in your guide from here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/ therefore you need to set the single.php in Newsmag-child\parts\single

Thank you!

Post count: 28

Hi,
I don’t find the parent directory (and files) Newsmag\parts\single so I can’t copy the original files to migrate it in the child’s theme

THanks

Post count: 35449

Hi ediwebroma, what version of theme are you using?
The above example is for Newsmag 4.9.5
Thanks.

Post count: 28

yes 4.9.5

Post count: 35449

Hi,
You are using v4.9.5 and you want to edit the single.php for default post template, then copy these two files -> https://i.imgur.com/4WyS4iY.png in child theme -> https://i.imgur.com/w24EDn9.png file path -> wp-content/themes/Newsmag-child/single.php
Thank you!

Post count: 28

Sorry is the first thing I tried but it doesn’t work. I know it may sound strange but if I copy the single.php file into the child-themed folder this file is not read

Post count: 35449

Hi ediwebroma,
For default post template make sure that you copy both files for that template, you need to copy them from in file path -> wp-content/plugins/td-composer/legacy/Newsmag/single.php https://i.imgur.com/KrAJdBM.png in wp-content/themes/Newsmag-child/single.php if file is not for default post template, then you need to copy them from wp-content/plugins/td-composer/legacy/Newsmag/parts/single/ in wp-content/themes/Newsmag-child/parts/single/
Hope this will help you!
Thank you!

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