"Bootstrap 4 - Product Page"
Bootstrap 4.1.1 Snippet by leandroruel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
<main>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="card mb-10">
<div class="card-header">
<nav class="header-navigation">
<a href="#" class="btn btn-link">Back to the list</a>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Man</a></li>
<li class="breadcrumb-item"><a href="#">Clothes</a></li>
<li class="breadcrumb-item active" aria-current="page">T-Shirts</li>
</ol>
<div class="btn-group">
<a href="#" class="btn btn-link btn-share">Share</a>
<a href="#" class="btn btn-link">Sell item like this</a>
</div>
</nav>
</div>
<div class="card-body store-body">
<div class="product-info">
<div class="product-gallery">
<div class="product-gallery-thumbnails">
<ol class="thumbnails-list list-unstyled">
<li><img src="https://via.placeholder.com/350x350/ffcf5b" alt=""></li>
<li><img src="https://via.placeholder.com/350x350/f16a22" alt=""></li>
<li><img src="https://via.placeholder.com/350x350/d3ffce" alt=""></li>
<li><img src="https://via.placeholder.com/350x350/7937fc" alt=""></li>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
body {
background-color: #f5f5f5;
padding-top: 25px;
font-family: 'Open sans', Arial, sans-serif;
}
.header-navigation {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: .80rem;
}
.header-navigation a {
font-size: .80rem;
}
.header-navigation .breadcrumb {
margin-bottom: 0;
background-color: transparent;
padding: 0.20rem 1rem;
}
.header-navigation .btn-group {
margin-left: auto;
}
.header-navigation .btn-share {
position: relative;
}
.header-navigation .btn-share::after {
content: "";
width: 1px;
height: 50%;
background-color: #ccc;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// select all thumbnails
const galleryThumbnail = document.querySelectorAll(".thumbnails-list li");
// select featured
const galleryFeatured = document.querySelector(".product-gallery-featured img");
// loop all items
galleryThumbnail.forEach((item) => {
item.addEventListener("mouseover", function () {
let image = item.children[0].src;
galleryFeatured.src = image;
});
});
// show popover
$(".main-questions").popover('show');
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

it is not working on internet explorer 11.06.

rajmalhotra () - 5 years ago - Reply 0


Zoom not working why????

fokoufranklin () - 6 years ago - Reply 0


Yes

developindiaonline () - 5 years ago - Reply 0