Skip to main content

Custom field image with title

More
10 years 11 months ago #216954 by ICT-klus
-- 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?


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

More
10 years 11 months ago #216966 by nicolas
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:
Code:
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.

More
10 years 11 months ago #219045 by ICT-klus
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.179 seconds
Powered by Kunena Forum