WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Scroll Gallery
[resolved] Scroll Gallery Caption (16 posts)

  1. galbu89
    Member
    Posted 2 years ago #

    Hi,
    I've installed NextGen Gallery + NextGen Scroll Gallery Plugin on my WordPress website.
    I customized the style of the gallery and when I flagged 'useCaptions', I had a problem.
    The result is this

    <div class="caption_container">
    <div>10_288</div>
    <p>
    <img style="width:643px; height:432px; max-width:643px; margin-left:3px; margin-right:0px; margin-top:0px; margin-bottom:0px; " alt="10_288" src="http://localhost/sintergi/wp-content/gallery/impianti-standard/10_288.jpg">
    </p>
    </div>

    I think that the problem is a <p> between the caption's <div> and the img.

    Can you help me?
    Thank you.

    Best Regards.

    http://wordpress.org/extend/plugins/nextgen-scrollgallery/

    [No bumping, thank you.]

  2. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    hm... what is the name of your theme?

  3. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    ich can't reproduce this with twenty eleven.

  4. galbu89
    Member
    Posted 2 years ago #

    I use Ecobiz theme.

    Thank you.

  5. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    oh, ok it's not a free theme. So can you please send me a link to your blog?

  6. galbu89
    Member
    Posted 2 years ago #

  7. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you. And can you please write me where I can find the gallery?
    Do you think it's possible to send me your theme files? My mailadress is info "at" bmo-design.de

  8. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    And one more question. What happen if you uncheck use description ?

  9. galbu89
    Member
    Posted 2 years ago #

    I find the gallery on WordPress.org in Plugin section.
    If I check 'Use Desc' it's the same of unchecked: there are no changing.
    I send you the theme files.

    Thank you.

  10. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks.
    I know, where I can download the gallery ;) I mean, were can I find the gallery at your site http://www.sintergi.it ?

  11. galbu89
    Member
    Posted 2 years ago #

    The page of my website where I put the gallery is here:
    http://www.sintergi.it/impianti-realizzati/impianti-standard/

  12. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    I find the problem, but it is not my fault.
    Your theme replace the custom wordpress content filters.

    Look at:
    functions/theme-functions.php line 83-86

    /**
     * Disable Automatic Formatting on Posts
     * Thanks to TheBinaryPenguin (http://wordpress.org/support/topic/plugin-remove-wpautop-wptexturize-with-a-shortcode)
     */
    function theme_formatter($content) {
    	$new_content = '';
    	$pattern_full = '{(\[raw\].*?\[/raw\])}is';
    	$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
    	$pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
    
    	foreach ($pieces as $piece) {
    		if (preg_match($pattern_contents, $piece, $matches)) {
    			$new_content .= $matches[1];
    		} else {
    			$new_content .= wptexturize(wpautop($piece));
    		}
    	}
    
    	return $new_content;
    }
    remove_filter('the_content',	'wpautop');
    remove_filter('the_content',	'wptexturize');
    
    add_filter('the_content', 'theme_formatter', 99);

    If you remove this lines, it will work.

  13. galbu89
    Member
    Posted 2 years ago #

    Great!
    Thank you very much!!!!
    Now, the gallery it works good!

    Thank you.

  14. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    If you like the plugin, please rate it at wordpress.org <http://wordpress.org/> and I would be happy if you donate me something or recommend me.

  15. Benedikt Mo
    Member
    Plugin Author

    Posted 2 years ago #

    problem is the 99, because it change the content after the do_shortcode function.

  16. theworldofchinese
    Member
    Posted 2 years ago #

    Hi, how do I modify this plugin so that captions are displayed below the image instead of overlapping the image and also how do I display multiple lines instead of just one?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.