Skip to content

Instantly share code, notes, and snippets.

@iamandrewpeters
iamandrewpeters / faithmade-settings-tweaks.php
Created October 14, 2019 13:29
MB Settings + Customizer
//Register Settings pages for styles and info
add_filter( 'mb_settings_pages', function ( $settings_pages ) {
$settings_pages[] = array(
'id' => 'fm_styles_panel',
'option_name' => 'theme_mods_page-builder-framework',
'menu_title' => 'Style Settings',
'parent' => 'themes.php',
'customizer' => 'true',
);
@iamandrewpeters
iamandrewpeters / fm-settings-setup.php
Created October 16, 2019 19:45
FM Settings Setup
<?php
//Add Settings Pages to Customizer
//Styles Page
add_filter( 'mb_settings_pages', function ( $settings_pages ) {
$settings_pages[] = array(
'id' => 'fm_styles_panel',
'option_name' => 'theme_mods_page-builder-framework',
'menu_title' => 'Style Settings',
'parent' => 'themes.php',
'customizer' => 'true',
@iamandrewpeters
iamandrewpeters / social-share-styling.css
Created January 30, 2020 14:51
Social Sharing with Twig
/* Colors for the icons */
.fa-facebook-square {
color: #378997;
}
.fa-twitter {
color: #EF6832;
}
.fa-envelope-open {
@iamandrewpeters
iamandrewpeters / bb-clickble-col.js
Created June 9, 2020 16:42 — forked from carlosonweb/bb-clickble-col.js
Make a BB Column Clickable
/**
* Makes a BB Column clickable.
* Pre-requisite: There must be an A Tag contained within the column element.
*/
jQuery(document).ready(function($){
$('.clickable-col').css('cursor', 'pointer');
$('.clickable-col').on('click', function(event){
$(this).find('a')[0].click();
});