• Resolved jasujs

    (@jasujs)


    Hi there,

    I’m trying to add an option to portfolio images.
    Under the Description / Categories / Format / Url, I’d like to add a custom option where the admin can put a text inside of it (so I can retrieve it via JS)

    I was looking into Hooks documentation but I didn’t find anything helpful. (Tried to check here but it was too complex for me GitHub – VP)
    I tried to work with the ‘vpf_extend_portfolio_data_attributes’ but I didn’t succeed to use it

    Would you have any idea on how to do it ?

    Have a good day !

    • This topic was modified 4 years, 11 months ago by jasujs.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jasujs

    (@jasujs)

    I’m doing this to be able to replace image on hover, as an overlay in a way. If you know another workaround maybe…

    • This reply was modified 4 years, 11 months ago by jasujs.
    Thread Starter jasujs

    (@jasujs)

    Well, I did it otherwise.

    I create a category, that I will hide on front-end, then select it via jQuery in the img-wrap data-attribute and then do my thing with images I wanted to have a custom attribute 😉

    Thank you anyway.

    And wonderful plugin btw !

    Thread Starter jasujs

    (@jasujs)

    Close

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a custom data-attribute to images’ is closed to new replies.