• Resolved mabhatti

    (@mabhatti)


    Hi,

    I used your plugin in my website with transexpo theme by ThemeMount Team

    But it shows a dropdown along with star rating. I want to remove that dropdown.

    the site is current under-construction. Please suggest me how to fix it.

    Thank you!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Your theme is responsible for this. The Star Rating field uses a dropdown in the background, and your theme is using some kind of javascript library to transform/style your dropdowns.

    I can’t help any further without a live URL to view.

    Thread Starter mabhatti

    (@mabhatti)

    You can access the URL now: https://bdsdrivingschool.co.uk/reviews/

    Plugin Author Gemini Labs

    (@geminilabs)

    Your theme is using the select2 library. In the functions.min.js file of your theme it runs the following code:

    jQuery('select').select2()

    Unfortunately, this code does not provide a way to exclude dropdowns from being transformed by Select2.

    You might want to contact the Theme developers and request that they change that line to this:

    jQuery('select:not(.browser-default)').select2()

    Until they make that change, the only way to fix this is with a code snippet: https://pastebin.com/yXCUmqX2

    Thread Starter mabhatti

    (@mabhatti)

    The snippet code did not work, and it crashed the website when I added it to functions.php file of theme: https://pastebin.com/yXCUmqX2

    Plugin Author Gemini Labs

    (@geminilabs)

    Please try again: https://pastebin.com/yXCUmqX2

    Thread Starter mabhatti

    (@mabhatti)

    Applied but dropdown is still there.. https://bdsdrivingschool.co.uk/reviews/

    Plugin Author Gemini Labs

    (@geminilabs)

    The script is probably firing before Select2 has a chance to initialize. You might need to add a timeout.

    Please try again: https://pastebin.com/yXCUmqX2

    You can test that it works by pasting this in the Browser’s web console:

    jQuery(function($){setTimeout(function(){$(".glsr-star-rating select.select2-hidden-accessible").select2("destroy")}, 100)});

    Note: This is a hack. Adding a timeout may cause a flicker, a brief moment where you see the Select2 dropdown before it is removed. I highly recommend you contact the Transexpo theme support team and request they make the change I mentioned in the post above.

    Thread Starter mabhatti

    (@mabhatti)

    Yes, it has temporarily resolved the issue. I will contact with theme developers as well. Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Dropdown is showing with star rating’ is closed to new replies.