[Resolved] Add an extra class to featured images

Home Forums Support [Resolved] Add an extra class to featured images

Home Forums Support Add an extra class to featured images

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1377859
    Arnab Mohapatra

    Hey!
    How do I add an extra class alignwide to all featured images inside posts?

    Thanks

    #1377911
    David
    Staff
    Customer Support

    Hi there,

    can you link me to your site so i can see if it is necessary to add the alignwide option to the images to achieve that.

    You can edit your original topic and use the Site URL field to share the link privately.

    #1378435
    Arnab Mohapatra

    Hi,
    I want to achieve something like this , The current layout is this

    I know adding CSS can be a solution, but thought adding a class name will be a better option as the same CSS is loading from stylesheet for alignwide class.

    https://d.pr/i/QrjGh0

    I hope this made sense

    #1378478
    David
    Staff
    Customer Support

    Try adding this CSS:

    .single .featured-image {
        margin-left: -30px;
        margin-right: -30px;
        border-radius: 5px;
        box-shadow: 0 0 20px 2px rgba(0, 0, 0, .1);
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.