Buscando...

Foro » Pages & Post with shadowbox

This topic contains 6 replies, has 2 voices, and was last updated by  n1bar.com 1 year, 4 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
n1bar.com

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

http://i44.tinypic.com/30jpgl0.jpg

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.

n1bar.com

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:

  1. The content of custom field wp_carousel_carousel_text (you can change this name – check the help tab)
  2. The excerpt of the post
  3. 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.

n1bar.com

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 16:21 #8409

It depends on your WP Carousel’s theme, but basically open theme.php (or theme-jcarousel.php), look for

<?php echo $item['DESC']; ?>
and replace it with the code.

n1bar.com

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

Viewing 7 posts - 1 through 7 (of 7 total)

This topic has been closed to new replies.