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.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




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

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Thumbnail slider breaking in thematic child theme based on context
Status: closed
May 9, 2011
8:26 pm
kfrank
Guest

I am using a thematic child theme. If I place:

<?php dynamic_content_gallery();// add Dynamic Content Gallery ?>

just before the_content() just after

<div class="entry-content">

The thumbnail slider breaks. I notice that the style property "left is set to 0"
when I place the gallery code just before the

<div class="entry-content">

everything works as expected.
you can see the broken version here… http://sandbox0.nks.net/
this seems to be a problem with the script that I cannot pinpoint.
It appears that it is not sizing the thumbnail slider correctly(too short) and so it will not slide so on some browsers the images wrap and on other the first image overlaps the second.
Any help would be appreciated. I am using the jquery version. and the 3.3.5 DCG

May 10, 2011
5:07 pm
kfrank
Guest

just to follow up I found what was breaking the thumbnail slider. In the thematic framework in the images.css
there is a style declaration:

.entry-content .wp-post-image {
border: 1px solid #ccc;
float:right;
margin: 0 0 20px 18px;
padding: 5px;
}

so when the DCG was placed within the post it was rendered within the div class="entry-content"
and the thumbnail images were being rendered with the class="wp-post-image" so all the thumbnails were being floated to the right causing them to appear in reverse order as well as to stack to the right. I was able to override this style by using a more specific rule:

#dfcg-slider .wp-post-image {
float:none;
}
perhaps this is something that you may consider in a future release of DFG

I hope this helps someone out.
If your having issues with DFG in a certain context check for cascading styles that my be throwing a monkey wrench into the works!

Cheers,
Keith

July 4, 2011
7:50 pm
Ade
Admin
Forum Posts: 2497
Member Since:
August 25, 2008
Offline

Good tip, Keith. Thanks for posting.

Unfortunately, I can't cater for all possible CSS styles in the thousands of themes out there. But I'll check to see if there is something simple I can do to avoid this kind of issue for themes which follow the WP standards.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
July 5, 2011
12:49 am
kfrank
Guest

I understand that you cannot cater to all themes. Just wanted people to know that your plugin works, but in some circumstances they may need to make some style changes :)

July 5, 2011
6:34 pm
Ade
Admin
Forum Posts: 2497
Member Since:
August 25, 2008
Offline

kfrank said:

Just wanted people to know that your plugin works, but in some circumstances they may need to make some style changes :)

Indeed. Thanks for posting the tip. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4303

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2497)