• Resolved eminemke

    (@eminemke)


    Hi!

    If I activate this plugin my twentyfourteen font is change. I use open sans serif and the a plugin use Opens sans but with this plugin my normal bold texts will be more dark and fat.

    How can I fixed thos issue?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi!

    Try adding this custom code to the functions.php file in your active theme directory:

    add_action( 'wp_enqueue_scripts', 'remove_asl_gf', 20 );
    
    function remove_asl_gf() {
        wp_dequeue_style( 'wpdreams-gf-opensans' );
        wp_deregister_style( 'wpdreams-gf-opensans' );
    }

    This should de-register the open-sans font declaration by ajax search lite.

    Thread Starter eminemke

    (@eminemke)

    Thank you, this code is works for me!

    Best Regards!

    Hi, first of all I want to thank you for this very useful plugin. I’m planning to purchase pro version when my site income will grow.

    I tried to use your code

    add_action( 'wp_enqueue_scripts', 'remove_asl_gf', 20 );
    
    function remove_asl_gf() {
        wp_dequeue_style( 'wpdreams-gf-opensans' );
        wp_deregister_style( 'wpdreams-gf-opensans' );
    }

    But I think the plugin is still loading open sans in the header. How can I delete this call?

    But I think the plugin is still loading open sans in the header. How can I delete this call?

    Find in /wp-content/plugins/ajax-search-lite/includes/classes/shortcodes/class-asl-search.php:

    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

    Delete this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin changes site google font’ is closed to new replies.