Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10038110
    Jadus
    Participant

    It’s me again with this Frankenstein project. I’m using the gallery section from demo-restaurant and I can’t get it to work. I have the images in place but when clicked, they don’t pop up into a slideshow like they should. Also, they don’t have the crosshairs element when hovering.

    The codepen is here: https://codepen.io/codelotus/pen/PopPjJv

    Thanks.



    Template Version: Multiple
    #10038115
    Support
    Keymaster

    Hello, this is the code you need to get that working:

    HTML:

    <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': true}}">
    	<div class="masonry-loader masonry-loader-showing">
    		<div class="masonry" data-plugin-masonry data-plugin-options="{'itemSelector': '.masonry-item'}">
    			<div class="masonry-item">
    				<span class="thumb-info thumb-info-centered-icons thumb-info-no-borders">
    					<span class="thumb-info-wrapper">
    						<img src="https://picsum.photos/800/600" class="img-fluid" alt="">
    						<span class="thumb-info-action thumb-info-action-custom">
    							<a href="https://picsum.photos/800/600">
    								<span class="thumb-info-icon-custom"></span>
    							</a>
    						</span>
    					</span>
    				</span>
    			</div>
    			<div class="masonry-item w2">
    				<span class="thumb-info thumb-info-centered-icons thumb-info-no-borders">
    					<span class="thumb-info-wrapper">
    						<img src="https://picsum.photos/800/610" class="img-fluid" alt="">
    						<span class="thumb-info-action thumb-info-action-custom">
    							<a href="https://picsum.photos/800/610">
    								<span class="thumb-info-icon-custom"></span>
    							</a>
    						</span>
    					</span>
    				</span>
    			</div>
    			<div class="masonry-item">
    				<span class="thumb-info thumb-info-centered-icons thumb-info-no-borders">
    					<span class="thumb-info-wrapper">
    						<img src="https://picsum.photos/800/620" class="img-fluid" alt="">
    						<span class="thumb-info-action thumb-info-action-custom">
    							<a href="https://picsum.photos/800/620">
    								<span class="thumb-info-icon-custom"></span>
    							</a>
    						</span>
    					</span>
    				</span>
    			</div>
    			<div class="masonry-item">
    				<span class="thumb-info thumb-info-centered-icons thumb-info-no-borders">
    					<span class="thumb-info-wrapper">
    						<img src="https://picsum.photos/800/630" class="img-fluid" alt="">
    						<span class="thumb-info-action thumb-info-action-custom">
    							<a href="https://picsum.photos/800/630">
    								<span class="thumb-info-icon-custom"></span>
    							</a>
    						</span>
    					</span>
    				</span>
    			</div>
    			<div class="masonry-item">
    				<span class="thumb-info thumb-info-centered-icons thumb-info-no-borders">
    					<span class="thumb-info-wrapper">
    						<img src="https://picsum.photos/800/640" class="img-fluid" alt="">
    						<span class="thumb-info-action thumb-info-action-custom">
    							<a href="https://picsum.photos/800/640">
    								<span class="thumb-info-icon-custom"></span>
    							</a>
    						</span>
    					</span>
    				</span>
    			</div>
    		</div>
    	</div>
    </div>

    CSS (css/custom.css)

    /* Custom Thumb Info */
    .thumb-info-custom {
        position: relative;
        border: 1px solid #ddd;
        overflow: visible;
        z-index: 2;
    }
    
    .thumb-info-custom:before {
        border: 1px solid #ddd;
        bottom: -5px;
        content: "";
        height: 5px;
        left: 2px;
        position: absolute;
        right: 2px;
        width: auto;
        z-index: 0;
    }
    
    .thumb-info-custom:after {
        border: 1px solid #ddd;
        bottom: -9px;
        content: "";
        height: 5px;
        left: 5px;
        position: absolute;
        right: 5px;
        width: auto;
        z-index: 0;
    }
    
    .thumb-info-custom .btn {
        margin: 0 0 -45px;
        position: relative;
        z-index: 10;
    }
    
    /* Thumb Info Custom Icon */
    .thumb-info.thumb-info-centered-icons .thumb-info-action-custom {
        top: 50%;
        margin-top: 0;
        height: 100%;
        left: 0;
        width: 100%;
        display: block;
        transform: translate3d(0, -50%, 0);
    }
    
    .thumb-info.thumb-info-centered-icons .thumb-info-action-custom a {
        display: block;
        width: 100%;
        height: 100%;
    }
    
    .thumb-info.thumb-info-centered-icons .thumb-info-action-custom .thumb-info-icon-custom:before {
        border-top: 1px solid #ddd;
        content: "";
        height: 1px;
        left: 20%;
        position: absolute;
        right: 2px;
        top: 50%;
        width: 60%;
    }
    
    .thumb-info.thumb-info-centered-icons .thumb-info-action-custom .thumb-info-icon-custom:after {
        border-left: 1px solid #ddd;
        content: "";
        height: 60%;
        left: 50%;
        position: absolute;
        right: 2px;
        top: 20%;
        width: 1px;
    }
    
    /* Thumb Info Caption Text Custom */
    .thumb-info-caption-text-custom {
        background: #f7f7f7;
        margin: 0 !important;
        padding: 14px !important;
    }
    
    .thumb-info .thumb-info-caption {
        padding: 0;
    }
    
    /* Thumb Info Custom Blog */
    @media (max-width: 991px) {
        .thumb-info-blog-custom img {
            max-width: 120px;
            margin-bottom: 10px !important;
        }
    }

    Best Regards,

    Jonas


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

This topic is marked as "RESOLVED" and can not rceive new replies.