Home Forums WoodMart support forum Woocommerce show title images

Woocommerce show title images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #141738

    m00nspeell
    Participant

    I have a problem with my images captions from woocommerce products. Right now I see I can add it only in description, but all my previews products have it in the title. Can you help me to add under zoomed picture the title caption.

    Attachments:
    You must be logged in to view attached files.
    #141770

    Artem Temos
    Keymaster

    Hello,

    Each image has a caption field while you edit it in Dashboard -> Media https://gyazo.com/f700e81b8baaaed677e0dcb515943ad0
    And that is a correct one to be shown there and not title or description.

    Kind Regards

    #141821

    m00nspeell
    Participant

    yes i know this is the right choice but for me it’s ok:(, I need title field because i have 30.000 images with title only, it’s almost impossible for me to move text from title to caption, that’s why i need to help me with this “improvisation” 🙁 . Please help me how to change caption with title in php, i will do the css. Thank you.

    #141829

    Artem Temos
    Keymaster

    You need to disable JS minification and combine in Theme Settings -> Performance and edit woodmart/js/functions.js file. Replace this line http://prntscr.com/p14kav

    caption = $(this).data('caption');

    with this one

    caption = $(this).attr('title');

    #141877

    m00nspeell
    Participant

    You saved me! This is what i want! 1000 thanks! 5 stars.

    #141885

    Artem Temos
    Keymaster

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Woocommerce show title images’ is closed to new replies.