WordPress.org

Ready to get started?Download WordPress

Forums

iThemes Security (formerly Better WP Security)
Better WP Security vs. Google Fonts (6 posts)

  1. indevd
    Member
    Posted 1 year ago #

    I discovered that "Display random version number to all non-administrative users" option if switched ON, prevents using Google fonts on my blog.

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

  2. nitin800
    Member
    Posted 1 year ago #

    Yes. Same problem with me too. No solution found till now.

  3. westerngeomancy
    Member
    Posted 1 year ago #

    Thanks for that - I've been trying to figure that one out for months!

  4. 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];
     }
  5. David Neal
    Member
    Posted 1 year ago #

    Thanks indevd!!!!!!!!!!!!!!

  6. wilson152
    Member
    Posted 1 year ago #

    Thanks, there are a number of similar posts in the forum that could use this info.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic