With GIC, we can display the title, caption, and image attributes. After installing and activating GIC, write your filter and add WordPress gallery shortcode to your page. WordPress gallery shortcode will display the caption from the metadata. GIC plugin overrides WordPress shortcode function to create hook. The crux of this plugin is the ability to filter the image caption. After activating GIC plugin, add the code above to your child theme's functions php file. Rename the function and tweak the return string to suit your needs.. Style H4 Used in Caption Example * h4 { color #777777 important font-size 1.2rem important font-family Helvetica, Arial, sans-serif important } * 2. Help Align the Blockquote * #gallery-3.gallery-caption { margin-left 40px important }. The media queries below will stack 1×2 and 1×3 galleries into nx1 or nx2 column as needed. * Media Queries for Responsive Galleries * ** * Styling based on article.
Read more