Custom [gallery] shortcode markup
-
I’m currently in the process of outfitting nivo-slider to work with gallery images from posts. I’m using the below code in conjunction with the Cleaner Gallery WordPress plugin.
<?php echo do_shortcode('[gallery]'); ?>
The issue I’m running into is that the gallery shortcode is adding all of this markup that I do not want. What I would like to know is if it is possible to strip the html markup that is associated with the following classes from being parsed.
.gallery {} .gallery .gallery-row {} .gallery .gallery-item {} .gallery .gallery-item img, .gallery .gallery-item img.thumbnail {} .gallery-caption {}
All that I want to be injected into the markup are a simple, non-listed set of images from the gallery like so:
<img src="foo" alt="bar" width="0" height="0" /> <img src="foo" alt="bar" width="0" height="0" /> <img src="foo" alt="bar" width="0" height="0" />
Any help would be greatly appreciated, thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom [gallery] shortcode markup’ is closed to new replies.