Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Trouble centering gallery

fixed
UserPost

5:52 am
February 4, 2010


nkobayashi

Guest

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

Guest

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 2378

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

Guest

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 2378

5

Great! Smile

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

4:17 pm
November 9, 2010


leleana

Guest

6

I tried both options: command and margin:0 auto;

The tag worked for the actual content gallery, but the pics on my screed did not center.

Please take a look at it for me. Thanks!

http://leleanajohnson.com.previewdns.com/featured-posts/

On another note, is there a way to reset the pictures so they expand across the entire space of the gallery?

9:37 pm
November 9, 2010


Ade

Admin

posts 2378

7

Hi,

Please remove any of these CSS changes that didn't work. You also need to remove the right-click protection – otherwise there's no way for me to Firebug it and see what's going on… Wink

The DCG doesn't resize images. Ideally, you should use images that are either exactly the same size as the DCG.

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

10:23 pm
November 9, 2010


leleana

Guest

8

Just removed the center commands and right click protection. Here's my link again: http://leleanajohnson.com.previewdns.com/featured-posts/

Thanks for working with me on this.