Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Trouble centering gallery

fixed
UserPost

5:52 am
February 4, 2010


nkobayashi

New Member

posts 2

1

Post edited 5:54 am – February 4, 2010 by nkobayashi


Hello, first of all I want to say this is a great plugin! This is my favorite featured post plugin and I'm so happy you made this :D

Now.. this would be perfect if I could figure this out: how to center the gallery. I read through a couple similar posts about this question but I was never able to figure it out. I am using the WooTube theme and it aligns the gallery to the left (I have added <?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?> in the index.php after <?php get_header(); ?>). Am I suppose to put some kind of code in the style.css of the WooTheme? Is there an example I can see?

BTW I am using jQery instead of Mootools

8:23 am
February 4, 2010


gregdowning

Los Angeles

Member

posts 3

2

I may not be a great webcoder, someone else can probably tell you how to do this w/ css. I just put the <center> command around where I inserted the php and it seams to have worked for me.

8:42 am
February 4, 2010


Ade

Admin

posts 1229

3

Yes, gregdowning's suggestion will work. Alternatively, find the CSS for the div that the gallery sits in, and add this to its CSS:

margin:0 auto;

If you post your URL I can tell you if this will work or not.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

3:01 am
February 5, 2010


nkobayashi

New Member

posts 2

4

Thanks guys! I added the center code (<center><?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?></center>) and it worked like a charm! I'm so happy now, thanks again!!

:D :D :D

8:43 am
February 5, 2010


Ade

Admin

posts 1229

5

Great! Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?