Add New Module for Child Theme

Posted in: Newspaper
Post count: 17

Hello, congratulations for the job!
I am an advanced user and know the PHP programming; I need to create (and add) a new module for my child theme, but I noticed that the theme API does not work with child theme and I can not modify the existing one because it is already used in other pages.
If you do that by changing the main theme (by editing the file td_config.php and the inclusion of related files), to lose future update changes, or I’ll have to rewrite them and it’s not good.
You have a solution?
Thank you.

Fabio

Post count: 23312

Hello FabioDuranti,

Unfortunately, the child theme has no support for theme API implementation, as you can see here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/ -> http://screencast.com/t/gtlg3AfKWzn The only way in this regard is to create your own modules in the main theme and for each update, you should make a full backup to avoid losing the data. For more information about API implementation, check here -> https://forum.tagdiv.com/td_api_moduleadd/

Thanks for your understanding!

Post count: 17

Hello Catalin,
it does not seem a good thing!
Such a beautiful job falls on a thing like that?
I hope you can fix this.
Good day.

Fabio

Post count: 22421

Sorry for the inconvenience but the theme API will not work from the child theme. The fix needs to be implemented on a development stage, there is no quick fix we can add here. I will add this to our list for future updates but I cannot promise anything as we get lots of suggestions and we must prioritize.

Thank you!

Post count: 17

Hello Bogdan,
if I may make a suggestion:
it would be enough to make overwritten by the theme child the file /include/td_config.php, to record the new modules (or blocks…) and then insert the modules (or blocks…) in the child theme correct folders.
Thanks for the attention.

Fabio

Post count: 22421

Ok. Noted.

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