• hi
    i am using thumb ‘classic’ set only on comment section

    there are lot of unused css style in gd-star-rating/css/gdsr.css.php file

    are showering my site

    how do i remove this styles

Viewing 1 replies (of 1 total)
  • Thread Starter yashmistrey

    (@yashmistrey)

    i fixed this i have now clean 70% of unused css style

    open wp-content/plugins/gd-star-rating/css/gdsr.css.php

    find $type == “s”

    and replace this code

    if ($type == "s") {
    	$folders[] = substr($r, 3);
    	$sets[] = $set;

    with this one

    if ($type == "s") {
    	if ($set['folder'] == 'Classical') {
    		$folders[] = substr($r, 3);
    		$sets[] = $set;
    	}

    i am using “Classical” set, depend which set are you using e.g.
    soft, Star Rating,Crystal, Darkness etc.

    now find this

    echo "/* stars sizes: ".join(", ", $sizes) ." */\r\n";

    add this code just before above code

    $sizes = array(16, 24);
    $sizes = array();
    $folders = array();

    now i cleaned up arrays with stars and restricted array with sizes to our actually used (16 and 24).

    i cleaned upto 30kb of unused css style

    hope it’ll help

    sorry for poor English

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: GD Star Rating] unused css’ is closed to new replies.