Child Theme custom block & Custom Styles for the TinyMCE

Posted in: Newspaper
Post count: 6

Hi,

I have 2 questions:

1. We created a child theme and a custom block using the child theme
and td-api-plugin in your example files. Is it possible to use this
new custom block in a widget in the child theme? How can we set it up?

2. In the child theme can we define new Custom Styles for the TinyMCE
editor? In the parent theme we managed to define, but when we moved
the definition (td_config.php) to the child theme, the custom styles
disappeared.

Thanks,

Adam

Post count: 20688

Hi,

Try declaring the custom block in this file like the other blocks are
https://www.screencast.com/t/AZArUxSjCB
It should show in the widgets section after you add it there, and you can use it as a widget. You will have to make the modification to main theme file in order to achieve this.
The td_config file is not supported by the child theme. You will have to make the modifications in the main theme file. Here you can see what files are supported for customization through the child theme
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

Post count: 6

Hi,

But if we define the widget on main theme level, we can override the definition when we update the main theme. Do you have any idea how we can prevent the overriding for both the widget and custom styles definitions?

Thanks,
Adam

Post count: 20688

Hi,

Unfortunately the child theme cannot override certain files from the theme, at the moment. You will have to take note of the modifications and make them again after updating the theme. However in the theme package you can see a Patch folder containing only the updated files, which you can replace in the main theme. This is useful in some extent if you have made modification to some files and would like to keep them if possible
https://forum.tagdiv.com/whats-included/

Thanks

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