Hi,
Before the last update, i was able to find the mobile single post template to edit it. I have to insert a shortcode in PHP code at the end of the posts on mobile theme (to add share buttons from social warfare plugin).
Where can i find it ? I’m juste able to edit loop-single/php template but my shortcode display only on dekstop version, not on mobile theme.
Before this update i was able to edit the header file of mobile theme, now i can’t find it too, can you help me ?
Thank you
Hello,
The new theme update made a few changes to the folder structure.
Most of the theme files were moved into the tagdiv composer plugin as per the requirements of envato: https://help.author.envato.com/hc/en-us/articles/360000472383-WordPress-Theme-Requirements.
We wrote an article on the subject here: https://tagdiv.com/updating-the-core-of-tagdiv-themes/
Moving forward with such requirements, a child theme will only work with functions.php, style.css and the few files left in the main theme folder as envato requires all functionality to be added through plugins.
You can find the files needed inside the tagDiv Composer plugin folder.
Sorry for the inconvenience and thank you for understanding.
Sorry, guys, what is the message here? That we have to edit template files in a plugin folder? Usually, this is not update-safe. Theme template files should be in the theme folder, that we can overwrite them in the child theme.
-
This reply was modified 7 years by
MKJ.
Hi,
It isn’t safe to modify main files, one of the reasons is that the modifications will be lost when the theme and theme plugins are updated, so they will have to be made again.
After the 9.7 update the child theme is limited to just a few files. This is a consequence of the recent modifications to the location of theme files, due to Envato requirements.
If you are looking for the mobile theme files they are now in the composer
– http://prntscr.com/ng4hfo
These files couldn’t be modified in a child theme previously.
Thanks
It isn’t safe to modify main files, one of the reasons is that the modifications will be lost when the theme and theme plugins are updated, so they will have to be made again.
Sorry??? This is exactly what a child theme is meant for. Of course, this is safe. It’s not a fire-and-forget solution. Now and then, you have to update the modified files. Usually, this is not a big deal when minor mods are added. However, it’s the best solution we have. And it is for good reasons the fundamental concept of WordPress themes.
Yes, that is what a child theme is for indeed and what happens. Files modified in the child theme may have to be re-added in some situations, and the modifications re-done. That is the case when there are modifications to them in the main theme usually.
But the same method with a child theme as before is not possible since the files are now in a plugin. If a method will be found we will provide it, make guides etc. For the moment I can’t say what exactly will happen.
