Archived topic
How to add x-default
1 reply · Started by Abraham on August 30, 2019
Hi
The official WPML support team suggest to add the following line of code to enable x default: https://wpml.org/forums/topic/x-default-an-other-issue/#post-1556554
Beside of making a change to the GeneratePress theme (or sub-theme) folder, can this be handled with a hook or alternativ way, and in which case, would such an approach be a less good way of approaching it than making the sub-theme?
PS I don't have s sub-theme and would like not to add one just for this one change to apply, thanks
Hi there,
That code is a filter/PHP so can be inserted using one of these methods:
https://docs.generatepress.com/article/adding-php/
If you aren't using a child theme already, the easiest way to use the Code Snippets plugin.
Let me know if this helps :)