Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #398942

    Hi,

    I need to rearrange the WooCommerce product loop ([products orderby=”date” order=”asc” ‘category’ => ‘courses’ columns = “1”]) such that the review stars and review count are after the h3 product title and before the short description.

    I’ve already used a remove and add action to change the layout of the avia_woocommerce_thumbnail function but now need to move the review and stars to after the title and before the short description.

    I have worked my way down to here:

    # wrap product titles and sale number on overview pages into an extra div for improved styling options
    #
    
    add_action( 'woocommerce_before_shop_loop_item_title', 'avia_shop_overview_extra_header_div', 20);
    function avia_shop_overview_extra_header_div()
    {
    	echo "<div class='inner_product_header'><div class='avia-arrow'></div>";
    }
    
    add_action( 'woocommerce_after_shop_loop_item_title',  'avia_close_div', 1000);

    And the next step is to output the title and then the short description but I’ve grepped the code for hours and just can’t work out where this is being added. Could you give me a pointer?

    Thanks

    #399291

    Hey DigitalEssence!

    Try commenting out lines 119 and 154 in /enfold/config-woocommerce/config.php.

    //remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 ); //remove rating
    //if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";

    Cheers!
    Elliott

    • This reply was modified 9 years, 10 months ago by Elliott.
    #400211

    Thanks Elliott. That’s done it.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce – Need to move stars/review to after shop_loop_item_title’ is closed to new replies.