Custom field image with title

  • Posts: 3
  • Thank you received: 0
9 years 11 months ago #216954

-- HikaShop version -- : 2.6.0

I hope someone can help me with this one. I have made a custom field listing (type radio button) which shows a row of images (via translation override script). How can I get a text below or above the image like a productname?


Attachments:

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
9 years 11 months ago #216966

Hi,

In in that case, in the translation override you can just add text after the img tag. If you do it smartly you can have it below the images.
For example:

MY_TRANS="<img class='field_image' src='http://mywebsite.com/myimage.jpg'/><div class='field_text'>My text</div>"
then you can add CSS for the classes field_image and field_text so that they fit like you want.

The following user(s) said Thank You: ICT-klus

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

  • Posts: 3
  • Thank you received: 0
9 years 10 months ago #219045

Hi Nicolas,

Thanks for your quick reaction. I solved it with some css-styling.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum