Portfolio Page Masonry

Description

Portfolio Page Masonry

#1. Install Code

#1.1. Make sure you use Portfolio Grid Simple or Grid Overlay

Portfolio page masonry 4

#1.2. Click Gear icon on Portfolio Page

Portfolio page masonry 2

Click Advanced > Paste this code

  • If you use Personal/Basic Plan and your plan doesn’t support Injection, you can see #3.1
<!-- 513 Portfolio Page Masonry -->
<script>
window.PortfolioMasonryConfig = {
  columnsMobile: 2,
  gapMobile: 10,
  titleMargin: 0
}
</script>
<script src="https://code.beaverhero.com/portfolio/513portfoliopagemasonry.js"></script>

Portfolio Page Masonry

#2. Customize

#2.1. To change number of columns/gap between items on Desktop, you can adjust this option

Portfolio Page Masonry

To change number of columns/gap between items on Mobile, you can adjust Line 04, Line 05

columnsMobile: 2,
gapMobile: 10,

#2.2. To make Title appears under Image, use this code under plugin code

<style>
/* Title under image */ 
.portfolio-masonry .grid-item .portfolio-overlay, .portfolio-masonry .grid-item .portfolio-text { 
    position: static !important; 
} 
.portfolio-masonry .portfolio-text {
    opacity: 1 !important;
}
.portfolio-masonry h3 { 
    color: #000 !important; 
    margin-top: 10px !important; 
}
</style>

If you want to make this appears on Mobile only, use this CSS code

<style>
@media screen and (max-width:767px) {
/* Title under image */ 
.portfolio-masonry .grid-item .portfolio-overlay, .portfolio-masonry .grid-item .portfolio-text { 
    position: static !important; 
} 
.portfolio-masonry .portfolio-text {
    opacity: 1 !important;
}
.portfolio-masonry h3 { 
    color: #000 !important; 
    margin-top: 10px !important; 
}}
</style>

#3. Other

#3.1. If you use Personal/Basic Plan and your plan doesn’t support Injection, you can edit Portfolio Page > Add a Block

05.26c16v1 Hover Text Show Image Follow Cursor

Choose Markdown

04.26c10v2 Header Sound Icon

Paste this code into Markdown Block

<script>
window.PortfolioMasonryConfig = {
  columnsMobile: 2,
  gapMobile: 10,
  titleMargin: 0
}
</script>
<script src="https://code.beaverhero.com/portfolio/513portfoliopagemasonry.js"></script>

Portfolio Page Masonry

Buy me a coffee