wpsl_template_css_classes

  1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File

Description

This filter allows you to add additional CSS classes to the outer div of the [wpsl] template.

So if you have multiple store locator pages, then you could use this to apply different styles without having to create a different template.

Parameters

$classes - (array) The default CSS classes.

Usage

The code below shows how to set a ‘wpsl-custom-css’ class on a page with the ‘your-page-slug’ permalink.

Changelog

Since 2.2.0

Source File

This filter is located in /frontend/class-frontend.php

Placement

The code needs to be placed in the functions.php file inside your active theme folder.