• Resolved paul83nl

    (@paul83nl)


    Hi,

    I’ve got posters and landscape pictures that I want to use in 2 different quizzes. But can I change the img class of the featured image? No it’s getting the thumbnail class, but I use these dimensions of other pictures on the website. So if I change it, the pictures on other sections will not appear correctly. The easiest way to solve this in my opinion is if I can assign a different img class to the featured img in the HD Quiz template. Any suggestions or can anyone help me how to do this (if possible and allowed). 🙂 Thanks!

    Paul

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi paul83nl,
    can you better explain why you need this? I’m not sure I’m following why you would need a custom class based on if the image is portrait or landscape? If you can explain your usecase, I can better help.

    One thing that you CAN do, is assuming all images of a quiz are the same orientation, is you can use the quiz ID selector.

    For example, to target ALL question featured images

    .hdq_question_featured_image img {}

    but to only target the featured images that belong to quiz 4071

    #hdq_4071 .hdq_question_featured_image img {}

    The quiz ID is the same id that is part of the shortcode (found on the main HD Quiz page that displays a list of quizzes)

Viewing 1 replies (of 1 total)

The topic ‘img class’ is closed to new replies.