• Hi, I’m using a free version of the theme GeneratePress, and It gives you the ability to change font-size in customizer. But Then I created a child theme, and now that functionality does now work with the child theme. Any suggestions?

Viewing 1 replies (of 1 total)
  • Thread Starter christian0710

    (@christian0710)

    UPDATE: Got it to work; added this to functions.php

    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Font-size customizeer does not work with child theme? (GeneratePress)’ is closed to new replies.