Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Last active March 22, 2018 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themeblvd/9d1b2edef7b118d92ff70bfff6d3f253 to your computer and use it in GitHub Desktop.
Save themeblvd/9d1b2edef7b118d92ff70bfff6d3f253 to your computer and use it in GitHub Desktop.
Adjust the icons for a toggle in Theme Blvd framework.
<?php
// Use the following with Jump Start 2.2.4+ (framework 2.7.4+)
/**
* Adjust icons used for opening and closing toggles.
*/
function my_toggle_icons( $icons ) {
// Icon for opening a closed toggle.
$icons['show'] = 'plus'; // Could also be more specific like `fal fa-plus`.
// Icon for closing an open toggle.
$icons['hide'] = 'minus'; // Could also be more specific like `fal fa-minus`.
return $icons;
}
add_filter( 'themeblvd_toggle_icons', 'my_toggle_icons' );
/* Color of toggle icons */
.panel-title-icon { /* panel is closed */
color: #000;
}
.active-trigger .panel-title-icon { /* panel is open */
color: #000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment