Child Theme Category.php does not work

Posted in: Newspaper
Post count: 56

Hello,
i have installed the child theme and had selected in the theme panel under categories => article display view “module 10”. I also selected my own sidebar. When I look at the generated page, I still see module 1. I also see the default sidebar.
But if I delete the category.php in the child theme, I see module 10.
The category.php in the child theme is exactly the same as in the original theme.
Do you have an idea what the problem could be or what I have to set to make it display correctly?

BR
Christoph

Post count: 35449

Hi,

If you want to have the category.php set in child theme and the category to work as parent them, then you need to set the category.php file from here wp-content/plugins/td-standard-pack/Newspaper/category.php in child theme wp-content/themes/Newspaper-child/category.php -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Post count: 56

Thanks for your help.
I have a similar problem with the header now.
I adapted the header-style-10.php and added it to the child theme under parts/header.
However, the menu is no longer displayed.
If I insert the updated header-style-10.php e.g. for testing under td-standard-pack/Newspaper/parts/header, everything looks correct.

Do I have to add more header files to the child theme? I have also tried to insert the header.php in the child them already. But that did not help.

Post count: 35449

HI,

Yes, you need to insert the files that the header is require -> https://i.imgur.com/ijvAb1V.png after you set these files the header should work (or you can simple copy the whole header except the header-styles-x.php that you do not need).

Thank you!

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