• Resolved audunmb

    (@audunmb)


    I set custom font-sizes in theme.json, but Twentig seems to override these. How do I make the childe theme take preference.

    "settings": {
    "custom": {
    	"typography": {
    		"font-size": {
    			"colossal": "clamp(3.25rem, 8vw, 6.25rem)",
    			"gigantic": "clamp(2.5rem, 5vw, 3rem)",
    			"huge": "clamp(2.25rem, 4vw, 2.75rem)",
    			"x-small": "clamp(.75rem, .9vw, 1.1rem)"
    				},
Viewing 1 replies (of 1 total)
  • Plugin Support Yann

    (@collet)

    Hi,

    I understand that you’re using a child theme of Twenty Twenty-Two. By default, Twentig adds some CSS modifications to this theme, which are overriding your customization. To turn off this feature, you can add the following PHP code into the functions.php file of your child theme:

    function child_theme_support() {
    	remove_action( 'wp_enqueue_scripts', 'twentig_twentytwo_enqueue_scripts', 12 );
    }
    add_action( 'after_setup_theme', 'child_theme_support', 20 );

    Hope that helps,
    Yann

Viewing 1 replies (of 1 total)
  • The topic ‘Twentig overrides child theme theme.json’ is closed to new replies.