[Support request] How to add x-default

Home Forums Support [Support request] How to add x-default

Home Forums Support How to add x-default

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #997520
    Abraham

    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

    #997537
    Leo
    Staff
    Customer Support

    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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.