Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author keesiemeijer

    (@keesiemeijer)

    Hi TAOG

    Your theme is automatically adding “gallery” thumbnails to a lightbox with Javascript. As this plugin has the same output as a WordPress gallery shortcode it applies it to the widget as wel.

    Just for troubleshooting can you add this filter in your functions.php file. It will remove the .gallery class from the widget container. This change will break the gallery layout, but test if you can now open the post.

    add_filter( 'gallery_style',  'widget_remove_gallery_class' );
    
    function widget_remove_gallery_class( $style ) {
    	if ( false !== strpos( $style, 'related-gallery' ) ) {
    		$style = str_replace( "class='gallery ", "class='", $style );
    	}
    	return $style;
    }

    btw:
    consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost.

    Thread Starter TAOG

    (@taog)

    Big TNX ??

    with Child-Theme i got blank pages. i put it in the original functions.php and it works well.

    Plugin Author keesiemeijer

    (@keesiemeijer)

    To have the widget thumbnails have the same style as your theme you could add the ‘.related-gallery’ class to all the css rules for the ‘.gallery’ class in your stylesheet style.css.

    For example, change this

    #content-container .gallery img {
    	border-width: 0px;
    }

    to

    #content-container .gallery img,
    #content-container .related-gallery img {
    	border-width: 0px;
    }

    etc..

    Thread Starter TAOG

    (@taog)

    i am very happy with the style of the thumbnails.
    only one thing would be nice. the mouseover from the theme, this round grey plus symbole, would be nice to have ??

    but this is not so important.

    Plugin Author keesiemeijer

    (@keesiemeijer)

    I’m glad you’ve got it resolved ??

    The theme adds an extra div with Javascript to the image links.

    <div class="portfolio-more" style="opacity: 0;">
    <div class="portfolio-icon"></div>
    </div>

    Maybe ask the theme developer/vendor how to accomplish this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post Thumbnail and Photolux Theme’ is closed to new replies.