Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • +1 for broken website.

    However there are some plugins which allow add css blocks. I found out that the CSS code block I used in Smart Slider was causing the problem. I would recommend checking this (I added the code block to the theme’s custom css section and the problem was resolved).

    • This reply was modified 5 years, 1 month ago by Ali Ozinan.

    Came accross the same issue. No need to edit any core file. For single product page and/or product loop sections, add the following function to the end of your theme’s functions.php file :

    // always display rating stars
    function filter_woocommerce_product_get_rating_html( $rating_html, $rating, $count ) { 
        $rating_html  = '<div class="star-rating">';
        $rating_html .= wc_get_star_rating_html( $rating, $count );
        $rating_html .= '</div>';
    
        return $rating_html; 
    };  
    add_filter( 'woocommerce_product_get_rating_html', 'filter_woocommerce_product_get_rating_html', 10, 3 ); 
    • This reply was modified 6 years, 7 months ago by Ali Ozinan.
Viewing 2 replies - 1 through 2 (of 2 total)