Editor-Style.css and td-config.php : how to child theme them ?

Posted in: Newspaper
Post count: 77

Hey guys,

Thanks for the great support so far !

I have a question regarding the 2 files : editor-style.css and td-config.php.
How can I modify them and use child them to add my new customization ?

Shall I just create /newspaper-child/include/td-config.php or how do we proceed ? I read your child theme documentation but those files are not mentioned.

Thanks for your help.

Post count: 22421

Hello,

Sorry but not all files will work from the child theme.
The 2 files unfortunately will not work from the child theme. If you want to edit them, you will need to make the modification in the main theme.

Thank you!

Post count: 77

Alright I understand but does it mean that after every update it’ll be replaced ?
Does most of the time your updates modify those 2 files ?

Post count: 77

Do you recommend to use a plugin that could help not to update all the time ?

Post count: 77

The main question is : what solution do you propose to avoid an update after every update ?
> use a plugin ?
> change the functions.php and add the new custom format directly there ?
> any other suggestion because as it is right now it’s not sustainable and limit the experience.

Thanks for your help and advices

Post count: 23312

Hy Ml,

Unfortunately, all of these core files cannot be overwritten in Child Theme. You should add them to each theme’s updated because the theme will overwrite all of these files to a new update.

Thanks.

Post count: 77

Thanks for your answer.

I thought about an other solution and would like to have your opinion.
What do you think about using an existing td theme custom format and changing the css related. Meaning I would use an existing custom format that would not be changed on the updates… the only difference is that the name of the custom format would be something like PinK Block etc…

What do you think ?

Post count: 23312

Hello,

Please notice that task involves doing such additional customizations and we cannot provide support for these services, sorry! All the custom modifications which will you make on the website can be lost when the theme will be updated. You can do this, but we recommend to make a full backup to your database and changes for a new theme update. Also, if you want to create your own Block, you can try to do it using the API implementation code, according to our documentation from here -> https://forum.tagdiv.com/td_api_blockadd/
Notice: If you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we can not provide custom work at the moment, sorry!

Thanks.

Post count: 77

Thanks for the infos.

My goal is to create a custom format. I want to be able to apply a specific css to a any text in the content post. The same kind of custom format as you have to highlight a text.

> Is it possible to use td api block for that ?

Thanks very much

Post count: 23312

Hi,

Please notice that if you want to have a custom format for a specific content post is not required to use API. You should only create your own custom CSS code and apply it for your desired section. Use the Inspector browser to create your CSS code. Read here
-> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks for your understanding!

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