• Resolved Masidus

    (@masidus)


    Hello,

    Thank you for the amazing plugin however I’m having a problem with the histogram anchor.

    The issue is when you categorise by star rating, the anchor link is different and hence you have to scroll back down to the reviews section.

    When I click on one of the star ratings EG 5 stars on the histogram table, it loads only the 5 star reviews fine, however the link assigned to this is /#tab-reviews (which doesn’t work as an anchor).

    Comparitively, when I click on the link to the reviews directly under the product title at the top of the page, the link assigned is /#reviews (which works perfectly).

    The ideal fix in my opinion would be an option to edit the anchor links for:
    – the link under the product title at the top of the page
    – each of the links in the histogram which allow you to sort by stars
    – the text which appears to allow you to see all reviews again after sorting by stars (Showing 6 of 6 reviews (5 star). See all 6 reviews)

    Hope this makes sense, many thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author CusRev

    (@ivole)

    Thanks for trying our plugin!

    #tab-reviews is a standard name for the reviews tab used by WooCommerce and official WordPress themes. It looks like the developer of your theme decided to use a different name (#reviews), so it doesn’t work.

    We can add a filter to our plugin to allow you to override the standard name (#tab-reviews) with any other name that you like (with the next update). You will then need to add a code snippet to your functions.php to implement the filter.

    Alternatively, you can replace #reviews with #tab-reviews in your theme. It will make your theme compatible not just with our plugin but also all other plugins that might expect the standard name (#tab-reviews) for the reviews tab on WooCommerce product pages.

    Thread Starter Masidus

    (@masidus)

    Excellent thank you for your assistance!

    Regarding the code to place in the functions.php do you have any documentation which I’d be able to follow?

    Many thanks!

    Plugin Author CusRev

    (@ivole)

    Please update the plugin to the version 3.120. In adds a filter to modify the name of reviews tab added to the links. You can use it in your functions.php as follows:

    function cr_change_reviews_tab_name( $name ) {
        return '#reviews';
    }
    add_filter( 'cr_productpage_reviews_tab', 'cr_change_reviews_tab_name' );
    Thread Starter Masidus

    (@masidus)

    Works perfectly, thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Review Anchor – Histogram’ is closed to new replies.