- Proyectos /
- Foro /
- WP Carousel /
- Pages & Post with shadowbox
This topic contains 6 replies, has 2 voices, and was last updated by n1bar.com 1 year, 4 months ago.
Pages & Post with shadowbox 8/1/2012 at 6:13 #8390
Hi there, i am using shadow-box with the carousel, the first issue is that when i add a page or a post to the carousel, two images are added to the panel, the second one is that due to shadowbox, it opens the pages in the overlay.
is there a way to overcome this
Reply To: Pages & Post with shadowbox 8/1/2012 at 8:45 #8394
I think it is a CSS issue of the Shadowbox you are using.
Sometime ago you asked about using shadowbox with a video (check the topic here), so just use the same shadowbox you used before if it worked.
And for the next time, close a topic (it is: say if my last solution fixed your problem) before opening a new topic.
You’ve opened 4 topics and closed just 1. I closed some of them because they were more than a month without answers, so please, if a solution solves your problem, post it in the topic, if not, post it. But do not leave a topic without answers and then open new ones.
Two days ago you were having problems saving the carousel. What was the problem? Should I assume that the problem is solved?
PS: I’ve checked your website and the Shadowbox works for me.
Reply To: Pages & Post with shadowbox 8/1/2012 at 14:37 #8401
Okay, I’ll explain in detail, as you can see in the following image, whenever I add a post or page, the carousel is displaying the image twice inside the panel;
http://i42.tinypic.com/350orbm.jpg (post)
http://i44.tinypic.com/15rjrdt.jpg (page)
http://i39.tinypic.com/npf6ts.jpg
It seems that the plugin is adding all of the pictures found in the page or post instead of just one and if it finds one it seems that it adds it twice.
The image is being displayed in the panel text
http://i42.tinypic.com/vctbev.jpg
perhaps when it grabs the description it needs a filter to grab only text.
Reply To: Pages & Post with shadowbox 8/1/2012 at 15:32 #8406
WP Carousel can use as text of the following:
- The content of custom field wp_carousel_carousel_text (you can change this name – check the help tab)
- The excerpt of the post
- The content of the post
If the one used by WP Carousel has an image, the image will be shown.
You can use the custom field to prevent this problem or modify your WP Carousel theme to remove the image from the panel’s text, as easy as:
<?php
$text = preg_replace("/<img[^>]+\>/i", "", $item['DESC']);
echo $text;
?>
This piece of code will remove any image of the desc and print the resulting text.
Reply To: Pages & Post with shadowbox 8/1/2012 at 15:45 #8407
okay, where exactly should i add that code
Reply To: Pages & Post with shadowbox 8/1/2012 at 17:28 #8410
Cool thanks, add overflow:hidden to style-jcarousel.css line 250 because the whole description from the post is being pulled to the text panel
This topic has been closed to new replies.