Gallery viewer which supports images, panoramas, maps, SoundCloud and Vimeo.
Please read DTRT WordPress Plugin Boilerplate: Workflows.
Please read the WordPress readme.txt.
The plugin shortcode is automatically injected into the content and wraps all <h2>
headings.
Note: A WordPress gallery must immediately follow the <h2>
heading.
When the plugin is enabled, DTRT Gallery replaces the existing WordPress [gallery]
shortcode. For correct display please set [gallery link="file"]
.
Galleries added via the WordPress WYSIWYG will automatically be enhanced. For correct display please set Gallery Settings > Link To: Media File.
If a heading has no adjacent gallery, it will automatically be wrapped in [wpdtrt_gallery_shortcode_heading]
.
Headings may be manually wrapped in [wpdtrt_gallery_shortcode_heading]
, as a template tag:
<?php
$heading = 'Heading to wrap';
echo do_shortcode('[wpdtrt_gallery_shortcode_heading]<h2>' . $heading . '</h2>[/wpdtrt_gallery_shortcode_heading]');
?>
Core CSS properties may be overwritten by changing the variable values in your theme stylesheet.
See scss/variables/_css.scss
.
<div class="wpdtrt-anchorlinks__section">
<!-- h2, .gallery, etc -->
</div>