Last active
March 22, 2018 20:13
-
-
Save themeblvd/9d1b2edef7b118d92ff70bfff6d3f253 to your computer and use it in GitHub Desktop.
Adjust the icons for a toggle in Theme Blvd framework.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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