(Free) Gallery Block Grid Category

Description

  • adding category filter to top of Gallery Block Grid
  • note: code will use Title as Category

Gallery block category 1

#1. Install Code

Hover page where you use Gallery > Click Gear icon

Gallery section grid category 2

Click Advanced > Paste this code

<!-- @tuanphan Gallery Block Category -->
<link rel="stylesheet" href="https://code.beaverhero.com/file?filename=1762504293890gallerybfilter.css"/>
<script src="https://code.beaverhero.com/file?filename=1762504382281gallerybfilter.js"></script>

Gallery block grid category 1

#2. Usage

Make sure you use Gallery Block Grid + you enabled Show Title

Gallery block category 3

Next, make sure you added Category text to Title

Gallery block category 4

or something like this

Gallery block category 5

#3. Customize

#3.1. To adjust category text size, you can use this code to Custom CSS

div.gallery-filter-bar {
    --filter-font-size: 20px;
}

Gallery block grid category 2

Buy me a coffee