Hi,
I want to make some customizations to the td-post-header in the Newsmag theme. A child theme has been set up already, but simply adding single.php and loop-single.php with the changes there, does not work. The default post layout is selected in the Theme Options. Can you please tell me which PHP template files I should change?
Hi,
If you have the Newsmag v4.9 then you’ll need to use the child theme from that package; notice that in the now all the functionalities of Newsmag theme was moved in td-composer as per envato requirements -> https://tagdiv.com/updating-the-core-of-tagdiv-themes/
If you want you can use this guide for child theme -> https://forum.tagdiv.com/the-child-theme-support-tutorial/ the files in the theme are set the same as in Newspaper, only the name of the theme is change wp-content/plugins/td-composer/legacy/Newsmag/parts/header/header-style-1.php -> https://www.screencast.com/t/AAby7XZJA for example in child theme the header-style-1.php file that is use by the header style 1 -> https://www.screencast.com/t/Nvmg772Dr then you need to be set like this -> parts/header/header-style-1.php
Hope this will help you!
Thank you!
Hi Calin,
thank you for your help. It’s still not exactly clear to me, though. I’ve done the following:
– I’m using the default post layout. There is also a ‘style-1’ for posts, but I’m not using that.
– copied single_template_1.php + loop-single-1.php from the td-composer/legacy/Newsmag/parts/single folder.
– adjusted the loop-single-1.php file to suit my needs and uploaded it to the root of the child theme.
– the changes are not there. Are these two files actually the ones used for ‘default’? I’m in doubt, because for posts, you can also select style-1. But in the legacy/…/single folder, there are no ‘default’ loop-single or single_template files…
Hi,
You need to set in child theme the template that you are using, above I provide you an example using the style 1, if you are not using the style 1 and you are using the default style, then you can set the loop-single.php from wp-content/plugins/td-composer/legacy/Newsmag/loop-single.php in child theme folder wp-content/themes/Newsmag-child/loop-single.php if you do not have activate the tagDiv Composer plugin then you need to set the loop from theme file wp-content/themes/Newsmag/loop-single.php in child theme.
Hope this time I was more clear.
Thank you!
Hi,
Please make sure that you have the Newsmag v4.9.1 and you are using the child theme from that package, after that copy those file from td-composer in child ( if you do not have td-composer activate you need to copy these files from theme ) -> https://www.screencast.com/t/F6WitsKc here is a test that show that we are editing the default child -> https://www.screencast.com/t/cnNdVvuBn -> https://www.screencast.com/t/eWs1mZcY -> https://www.screencast.com/t/GnVM1DUpH7
Hope this will help you better!
Thank you!