Ratings Default settings

This topic contains 3 replies, has 3 voices, and was last updated by  Matthias Schmieder 3 years, 12 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #542822

    Matthias Schmieder
    Full Member
    Post count: 94

    Hi there,

    for the extended ratings, the default setting on our page is currently “poor” (“mangelhaft”).
    How can we change this to an empty field or “very good”?

    Many greetings

    #542860

    Alex Rollin
    Moderator
    Post count: 27815

    There is not yet a setting for that but I will take up your idea as a suggestion for the developers. If there is a quick workaround they will post back with an update. If not then they will review it for changes to the addon in the future.

    #543111

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Try following PHP snippet to set default rating option to very good.

    
    
    function gd_snippet_200428_wp_footer() {	
    ?>
    <script type="text/javascript">
    jQuery(function($) {
    	$('.single .gd-extra-ratings .gd-rate-cat-in').find('select').each(function(){
    		if ($(this).val() == 1) {
    			$(this).find('option[value="4"]').attr('selected', 'selected');
    		}
    	});
    });
    </script>
    <?php
    }
    add_action( 'wp_footer', 'gd_snippet_200428_wp_footer', 100 );

    Regards,
    Kiran

    #543289

    Matthias Schmieder
    Full Member
    Post count: 94

    Hi,

    that works.
    Thanks you so much!

    Many greetings

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket