751 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
CyberShot says

Ok, with a little help from the people around here, i found that wordpress does have a photogallery option available for posting. which is good. I like that you can upload many photos. My issue is that when I do that, it doesn’t align them in any usable fashion. I need to get them to align to the right of my post. I told the gallery to use 3 rows because I was planning on uploading about 7 images. figured 3 per row would be good. but when I view the post, the images are in the center of the post and this is not what I want. Do you have any suggestions?

164 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
tonyc says

You need to make use of these options for the [gallery] shortcode and then style it appropriately with css

itemtag the name of the XHTML tag used to enclose each item in the gallery. The default is “dl”.

icontag the name of the XHTML tag used to enclose each thumbnail icon in the gallery. The default is “dt”.

captiontag the name of the XHTML tag used to enclose each caption. The default is “dd”. For example, to change the gallery markup to use div, span and p tags:

[gallery itemtag=”div” icontag=”span” captiontag=”p”]

For more info check here:

http://codex.wordpress.org/Using_the_gallery_shortcode

751 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
CyberShot says

ok, I think I get it. But what if there is no gallery pictures uploaded. Is there a loop to use to check if a picture was uploaded or does it just default to nothing?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by