WordPress.org

Ready to get started?Download WordPress

Forums

iThemes Security (formerly Better WP Security)
WP Better Security conflicts with theme (google) fonts (3 posts)

  1. PiepersAV.COM
    Member
    Posted 1 year ago #

    Hi,

    when I activitate my WP Better Security Plugin, it conflicts with my Google Fonts and the theme (Blue Diamond from ThemeForest). The fonts get 'standardized', so the beautiful fonts disappear. I've asked the theme builder why it does not work, his advice was to ask the builders of the plugin what the problem is.

    The settings/tabs of WP BSP are very extensive, I have no clue which setting to edit to make sure it secures my site and to make the fonts work. Please help me.

    Regards,

    Pim Piepers.

    http://wordpress.org/extend/plugins/better-wp-security/

  2. underneaththestairwell
    Member
    Posted 1 year ago #

    Same problem here and this is after having website completely down for a week. WP Security is a shit plug in

  3. C S
    Member
    Posted 1 year ago #

    no problem, you need to edit the file
    /plugins/better-wp-security/inc/secure.php

    go to line 890, there is the function remove_script_version {} which cuts off the tail of urls with parameters.

    replace it with the following code and your googlefonts will appear again:

    function remove_script_version( $src ){
       $parts = explode( '?ver=', $src, 2 );
       if ( count($parts) == 1 ) {
         $parts = explode( '&ver=', $src, 2 );
       }
       return $parts[0];
     }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic