How to style [gallery]?
-
I am trying to call and style the WordPress gallery from single.php. Plugins are not an option.
I am trying to get the gallery to show to the right of the main post area.
Problems:
1. The incorrect gallery is showing.
2. The padding won’t get smaller.
3. I can’t get more than 3 thumbnails to display in a single line.I have tried this:
<div style=" position:relative; z-index:1000; display: inline; list-style-type: none; margin: 600px 0 0 340px; padding: 0;"> <?php echo do_shortcode('[gallery id=""]'); ?> </div>
And I have tried this:
<div style=" position:relative; z-index:1000; display: inline; list-style-type: none; margin: 600px 0 0 340px; padding: 0;"> <?php echo do_shortcode('[gallery id="'.get_the_ID().'"]'); ?> </div>
Neither works. Help?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘How to style [gallery]?’ is closed to new replies.