• Hi
    How can i add a class to media setting for thumbnails

    .thumbs { margin: 10px 7px 10px 7px; border:solid 1px #CCC}

    so that i dont have to in every page where i have a gallery have to replace the default class in every image

    Can anyone help?
    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The image classes are not part of media settings, they are theme dependant. In the case of the default gallery shortcode, the thumbs have the class gallery-icon. If you can’t use that, you can override the shortcode definition by copying the original in wp-includes/media.php, altering as needed, naming your altered version something unique, then adding it to the filter ‘post_gallery’.

    Thread Starter melanie bund

    (@melanie-bund)

    thanks will try this – you are my first response to questions i have posted over the year and its nice to know someone is out there…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘media settings add thumb margins’ is closed to new replies.