Change HTML generated in characteristics (radio button)

  • Posts: 217
  • Thank you received: 4
5 years 3 weeks ago #305053

-- HikaShop version -- : 4.0.3

Hello guys!

I would like to ask you for a help. I am trying to stylize PRODUCT CHARACTERISTICS that are view as RADIO input on a product page.

CSS selector that I need to use looks like this:
input:checked ~ label

But unfortunately, the code of radio looks like this and there is no CSS selector that I need

<label for="xxx" .....>
<input type="radio" ... />
</label>

I was trying to search file where I can change it, but unsuccessfully.
Please, could you advise this file, eventually what to replace?

I need to have label after input
<input type="radio" ... />
<label for="xxx" .....></label>


Thank you in advance for any tips!
Filip

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 3 weeks ago #305074

Hi,

The radios HTML is not generated by HikaShop but by Joomla core library. You would have to do some fancy class override of the Joomla radiolist API: api.joomla.org/cms-3/classes/JHtmlSelect.html#method_radiolist

Please Log in or Create an account to join the conversation.

  • Posts: 217
  • Thank you received: 4
5 years 3 weeks ago #305080

Hello, Thank you very much. I will contact developer.

Best wishes,
Filip

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum