Support » Theme: Hello Elementor » Default font size

  • bawean

    (@bawean)


    How to change default font size? in the customize panel, there are no settings for that

Viewing 3 replies - 1 through 3 (of 3 total)
  • SAM

    (@7ka)

    Use child theme.

    https://github.com/elementor

    @7ka Already using a child theme but still can’t change the default font size. is there a tutorial how to change it?

    @bawean
    Tutorial
    Just look at the style file of the parent theme and repeat the desired properties in the child theme.
    Or you can use the code to insert the child theme functions into the file.

    function add_google_fonts() {
        if ( !is_admin() ) {
            wp_register_style('google-open-sans', 'https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=cyrillic', array(), null, 'all');
            wp_register_style('google-roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,700&subset=cyrillic', array(), null, 'all');
            wp_enqueue_style('google-open-sans');
            wp_enqueue_style('google-roboto');
        }
    }
    add_action('wp_enqueue_scripts', 'add_google_fonts');
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.