star rating read only - remove text and negative image

7 replies · opened Apr 1, 2019

BbagginsApr 1, 2019

Is there a way to not display:

  • the negative circle image that is in front of the stars
  • text after stars

`<input id="input-15" class="rating" value="<?php echo $blahblahOverallStar; ?>" data-size="sm" data-readonly="true">

I just want to display the stars

SSemicolon WebSTAFFApr 3, 2019

Hello,

This is Definitely Possible! You can simply add the following JS Settings to the JS Code for the Specific Star Rating element at the bottom of the Page:

showClear: false,
showCaption: false

This will definitely work fine. Hope this Helps!

Full Documentation for the Plugin is available here: http://plugins.krajee.com/star-rating#options .

Let us know if we can help you with anything else or if you find any further issues.

BbagginsApr 3, 2019

Didn't work in star-rating.js. Text and - symbol still showing up.

SSemicolon WebSTAFFApr 4, 2019

Hello,

You are editing the incorrect File. You will need to edit your HTML File and find the following code:


	jQuery("#input").rating({
		showClear: false,
		showCaption: false
	});

This will work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

BbagginsApr 4, 2019

Still not working when I add the code. This is what I got:
" data-size="xs" data-readonly="true">

SSemicolon WebSTAFFApr 6, 2019

Hello,

The Codes above should perfectly fine. Please provide us with a Live URL so that we can check out the exact issue and provide you with more assistance on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

BbagginsApr 6, 2019

ok. I sent you link via the themeforest.net email box.

SSemicolon WebSTAFFApr 7, 2019

Hello,

There are 100s of HTML Validation Errors on your Page which is causing these issues. Additionally, the #input ID is duplicated multiple times on your Page which violates the HTML/JS rules which is why the Star Rating settings are not working correctly. Fixing these errors will automatically fix these issues.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard