td-composer and child theme.

Posted in: Newspaper
Post count: 20

Greetings .
I have modified the following files

td-composer/legacy/common/wp_booster/td_module_single_base.php
td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php

and am trying to put it in the child theme. but it does not work . Could you help me?

Post count: 20688

Hi,

The module files can be customized in a child theme, but files from the wp_booster folder cannot be unfortunately.
If you have to modify the td_module_single_base file, it will have to be done in the main composer file directly.

If I may ask, what modifications are you planning to do? Maybe there are other ways of doing it, perhaps without making modifications to the files. Let me know.

Thank you!

Post count: 20

Hi Simon

I display the via name and via url fields in a news loop.
for example flex block 1.

To achieve this I have modified

td-composer/legacy/common/wp_booster/td_module_single_base.php
line 894 i comment

/* if (!$this->is_single) {
return; } /*

td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php
line 147 I have added
php $td_mod_single->show_source_and_via()

Post count: 20688

Hi,

That will indeed require modifications in the respective file, there’s no way around it. It would have been useful in this case if the file was supported by the child theme, but it is not unfortunately. So the modification has to be made in the main file in the composer. Sorry for this inconvenience.

Or maybe our developer team can think of a way to do it, a more update proof way, as a custom solution for your website. If you are interested, you can always submit a request here https://tagdiv.com/submit-a-request/ even if just to know if it can be done or not, or what it will take to do.

Thank you!

Post count: 20

hi
Basically , due to the nature of the website , I need to show a read more with a link to an external page on the front page, could be in the extract. Could you tell me where it is and what is the function that shows the extract? and tell me if this could be in the child

Post count: 21065

Hello @poldino!

If you want to modify the file of the flex block 1, then you can integrate it in a child theme. If you want to change the link of the read more button: https://prnt.sc/51ACEAF76kD5, then all your posts will have the same link. If you need it differently, then this will require custom work which is not covered by the support team.

Thank you!

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