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
add_theme_support( 'responsive-embeds' ); |
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
add_action('wp_head', 'lit_no_favicon'); | |
function lit_no_favicon() { | |
echo '<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />'; | |
} |
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
// Removes all CSS classes & ID's from menu items (only allows those listed) | |
add_filter('nav_menu_css_class', 'lit_strip_nav_menu'); | |
add_filter('nav_menu_item_id', 'lit_strip_nav_menu'); | |
function lit_strip_nav_menu($var) { | |
return is_array($var) ? array_intersect($var, array( | |
'current-menu-item', | |
'menu-item', | |
'menu-item-has-children', | |
'sub-menu' | |
) |
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
// Adds brand colours to editor palette for content editors | |
add_theme_support( 'editor-color-palette', array( | |
array( | |
'name' => 'Primary', | |
'slug' => 'primary', | |
'color' => '#db164d', // Replace with your colour | |
), | |
array( | |
'name' => 'Secondary', | |
'slug' => 'secondary', |
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
if ( function_exists( 'the_custom_logo' ) ) { | |
the_custom_logo(); | |
} |
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
add_theme_support( 'custom-logo', | |
array( | |
'height' => 200, | |
'width' => 200, | |
'flex-width' => true, | |
) | |
); |
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
/* Change max-width to match template */ | |
.wp-block { | |
max-width: 720px; | |
} |
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
add_action( 'admin_bar_menu', 'lit_resign_adminbar_item', 1002 ); | |
/** | |
* Adds "Resign" menu item in the WordPress admin bar. | |
* | |
* @param WP_Admin_Bar $admin_bar WP_Admin_Bar instance, passed by reference. | |
*/ | |
function lit_resign_adminbar_item( $admin_bar ) { | |
if( !class_exists( 'CT_Component' ) ) { | |
return; |
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
add_action( 'plugins_loaded', 'lit_oxy_gtm' ); | |
function lit_oxy_gtm() { | |
if( class_exists( 'CT_Component' ) ) { | |
add_action( 'ct_before_builder', 'lit_add_gtm_tag' ); | |
} | |
} |
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
add_theme_support( 'wp-block-styles' ); |