Skip to content

WordPress plugin that adds a new setting in the media gallery settings to set a custom CSS class.

Notifications You must be signed in to change notification settings

santerref/gallery-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

WP Gallery Class

This plugin let you add a custom class to WordPress media libraries. The class is added as a wrapper.

Before, without the plugin :

<div id="gallery-4" class="gallery galleryid-9 gallery-columns-1 gallery-size-full"><figure class="gallery-item">
    <div class="gallery-icon landscape">
        <img width="318" height="60" src="http://example.com/wp-content/uploads/2016/11/image1.png" class="attachment-full size-full" alt="bouton-conference">
    </div></figure><figure class="gallery-item">
    <div class="gallery-icon landscape">
        <img width="318" height="60" src="http://example.com/wp-content/uploads/2016/11/image2.png" class="attachment-full size-full" alt="bouton-benevole">
    </div></figure>
</div>

After, with the plugin

<div class="gallery-wrapper custom-class">
    <div id="gallery-4" class="gallery galleryid-9 gallery-columns-1 gallery-size-full"><figure class="gallery-item">
        <div class="gallery-icon landscape">
            <img width="318" height="60" src="http://example.com/wp-content/uploads/2016/11/image1.png" class="attachment-full size-full" alt="bouton-conference">
        </div></figure><figure class="gallery-item">
        <div class="gallery-icon landscape">
            <img width="318" height="60" src="http://example.com/wp-content/uploads/2016/11/image2.png" class="attachment-full size-full" alt="bouton-benevole">
        </div></figure>
    </div>
</div>

About

WordPress plugin that adds a new setting in the media gallery settings to set a custom CSS class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published