• Hi,
    And thank you for this awesome plugin !

    I make my themes with support for this plugin. I like it ! But I have responsive themes like Cannyon ( free on WordPress community ).

    For example I have a big text on the header and the users can change the font size for this headline. For small devices this text is too big !

    Please, some one, can advise me how to use the plugin with responsive support ?

    Now I use the plugin in next way:

    <?php
    if ( class_exists( 'EGF_Register_Options' ) ) {
    
        $fonts = array(
            'mythemes-cannyon-header-headline'          => array(
                'name'          => 'mythemes-cannyon-header-headline',
                'title'         => __( 'Header Headline',  'cannyon_' ),
                'type'          => 'font',
                'description'   => null,
                'section'       => 'default',
                'tab'           => 'theme-typography',
                'transport'     => 'postMessage',
                'since'         => 1.0,
                'properties'    => array(
                    'selector'      => 'div.mythemes-header a.header-title',
                    'force_styles'  => null
                )
            ),
            'mythemes-cannyon-header-description'          => array(
                'name'          => 'mythemes-cannyon-header-description',
                'title'         => __( 'Header Description',  'cannyon_' ),
                'type'          => 'font',
                'description'   => null,
                'section'       => 'default',
                'tab'           => 'theme-typography',
                'transport'     => 'postMessage',
                'since'         => 1.0,
                'properties'    => array(
                    'selector'      => 'div.mythemes-header a.header-description',
                    'force_styles'  => null
                )
            )
        );
    
        function mythemes_get_option_parameters( $options )
        {
            global $fonts;
    
            $options = array_merge( $fonts, $options );
    
            return EGF_Register_Options::get_custom_option_parameters( $options );
        }
    
        add_action( 'tt_font_get_option_parameters' , 'mythemes_get_option_parameters' );
    }
    

    https://www.ads-software.com/plugins/easy-google-fonts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sunny Johal

    (@sunny_johal)

    Hi mythemes,
    Currently the plugin does not provide support for media queries. However, this is on the roadmap for a future release. Also I wouldn’t recommend your current integration with our plugin as we have filters that you can hook into to add your custom controls. Read this thread for an example of this. Cheers

    Sunny

    Thread Starter mythemes

    (@mythemes)

    Ok and thank you for quick reply !
    Also please notify me when the plugin will be with responsive support !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Responsivity ?’ is closed to new replies.