I have a really strange thing here. My posts are all set to style9, and I copied single_template_9.php into my child-theme folder, but no matter what I edit there, the output stays the same. It is like this file is not taken into consideration. I also added teststrings to the HTML output and checked in the source code, it is simply not there. Editing page.php or the loop-single-9.php does show up in the output, so the child-theme works, and apparently it uses the style9 template, but I can not edit it.
Do you have a clue? To recreate, please simply copy the file into your childtheme and change something, for example <article id=”444test444″…
then call a post that has style9 and check the source code … still shows its good old post-XX ID, so definetely this file is not read. But then what else is used?
My aim is to use the td_1068x580 as featured image instead of 1068×0, and for this I need to change it in the post template, which should be exactly this one.
Thanks for a hint on where I find what I am searching for π
Hi,
I have also checked this and seems to be an issue with that post template in child theme. I have added this on our issue list and it will be fixed as soon as possible. Sorry for inconvenience!
Thanks for reporting!
I am glad if I can also help a bit. Yet, do you have a short idea what I could try as a quick workaround?
Actually for testing it is enough to delete the content of the file … no need to check the sourcecode afterwards, because if the page still shows, the file is definetily not taken from the child-theme π
I have tested with style1 as well, same situation. Didn’t test other templates though, guess it is valid for all of them.
Which is actually an impossibility, isn’t it? Isn’t WP itself handling the child-theme thing? Did you “bend” something there? π
Hi Sofian,
try this: http://screencast.com/t/2bMgzLrArllP
the code:
locate_template($template_path, true);
Yes… some of the implementation of the core is not child theme friendly π but we are working on it.
-
This reply was modified 11 years by
Radu.
I dont have those files … I have much less files in my /includes/wpbooster/
Also searching in explorer didnt show anything called like this?
Why do you have to many files in your wpbooster and I not?
And as it seems, you suggest a core hack. Will you change this in the next update by yourself to make the theme child-friendlier? Please make your theme child-friendly, since this is superimportant.
If not, is there also a solution to overwrite this function from within the child’s functions?
Hi,
Radu uses a development version and those files are not present in the final one, you can find the code here – http://screencast.com/t/amVzccb8k8Sm
Yes we plan to fix it in the next update.
Thank you!
Great thanks for looking up.
Unfortunately, if I replace that line, the post is not showing at all anymore π
No error, but also now output, just a header with a footer π
But anyhow, if you fix it in the next update and this will be a question of one or two weeks, never mind, I can wait that long. If it should take longer, maybe you can give this workaround a short check to see if it works for you.
Hi,
You have to use the API child-theme method – https://forum.tagdiv.com/api-header-style-introduction/ – https://forum.tagdiv.com/the-child-theme-method/
And check this section – https://forum.tagdiv.com/api-single-template-introduction/
Thank you!