Skip Navigation

[Resolved] Rating block does not show in view

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Arno 3 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#2269399
rating block on edge.jpg

Hi,

I am trying to show the value of a custom number field in the rating block within a view. Initially it seemed to work fine. Then I changed the default star icon to a thumbs up. The result was that the block was no longer visible in the frontend. Also, when going into page edit mode, it took extremely long before the view became visible.

Link to a page where the issue can be seen: hidden link
In Chrome, I don't see the block at all. The HTML is rendered but nothing is visible.
In Edge, I see "] only.

I think something is wrong with the rating block. On another page where I use the default stars (hidden link), all stars were grey while in edit mode they showed 4 or 5 out of 5 yellow as expected. After a long time and another page publish, this started to work though.

#2269601

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Arno,

Thank you for getting in touch.

It would appear that there is a break in the block that is causing it not to render properly.
Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

I've enabled the private fields for your next response.
Thanks,
Shane

#2269643

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Arno,

The ratings should now be showing. What I did was to remove and re-add the block and it now shows.

Sometimes this can happen where the block will need to be removed and re-added in order for the correct linkage to the data to be made.

Can you verify on your end that the issue is no longer present?

Thanks,
Shane

#2269665

Thanks Shane. That does work for me both in the page edit mode and the frontend. However, then I changed it to the thumbs up icon again and the issue is back. I think doing that corrupts the block.

#2269759

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Arno,

Thank you for the additional information. I managed to track down an internal ticket where this issue was already reported. Unfortunately there hasn't been any fix posted for the issue as yet.

I did however add your ticket to the issues tracker so the developers can be aware that multiple persons are having the issue.

My recommendation here is to use the default star icons temporarily as a workaround for the custom icons.

Thanks,
Shane

#2270121

Hi Shane,

Ok thanks. My guess is that the problem is in the generated CSS. In the Chrome dev tool I can change "content: attr(data-star)" in ".tb-rating__star::before {" to this:
"content: 'test'"

That will make it display "testtesttesttesttest" (instead of the 5 icons that were supposed to be there)

Arno

#2270459

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Arno,

I too suspect a css issue was well. However given the widespread issue the best thing is to wait for our dev team to properly investigate and resolve the issue.

Thanks,
Shane

#2270461

Thank you!