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
/* Custom CSS by Dave Foy - https://www.designbuildweb.co - [email protected] */ | |
/* Use the same method of sizing elements as Elementor does */ | |
body * { | |
box-sizing: border-box; | |
} | |
/* Elementor - set some default left and right padding on mobile - same as in GeneratePress */ | |
.elementor-top-section.elementor-section-boxed > .elementor-container { | |
padding: 0 20px; |
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_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' ); | |
function tu_custom_color_palettes( $palettes ) { | |
$palettes = array( | |
'#000000', | |
'#FFFFFF', | |
'#CCDAD1', | |
'#9CAEA9', | |
'#788585', | |
'#6F6866', | |
'#38302E', |
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_filter( 'astra_color_palletes', 'wpb_astra_color_palettes' ); | |
function wpb_astra_color_palettes() { | |
$color_palettes = array( | |
'#ffffff', | |
'#f6f7f8', | |
'#222222', | |
'#666666', | |
'#000000', | |
'#000000', | |
'#000000', |
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
// Replace the default color palettes in the color picker | |
function my_custom_color_palettes( $palettes ) { | |
$palettes = array( | |
'#000000', | |
'#ffffff', | |
'#f44336', | |
'#03a9f4', | |
'#00bcd4', | |
'#ffeb3b', |
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
/* Site logo size */ | |
.header-image { | |
width: 310px; | |
} |
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
/* Subheading spacing */ | |
p + h2, | |
ul + h2, | |
ol + h2 { | |
margin-top: 1.5em; | |
margin-bottom: 0.5em; | |
} |
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( 'template_redirect','tu_add_elementor_filter', 999 ); | |
function tu_add_elementor_filter() { | |
if ( in_array( 'elementor-page elementor-page-' . get_the_ID(), get_body_class() ) ) { | |
add_filter( 'body_class', 'tu_add_elementor_classes' ); | |
add_filter( 'generate_show_title','__return_false' ); | |
} | |
} | |
function tu_add_elementor_classes( $classes ) { | |
$classes[] = 'full-width-content'; |
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
function year_shortcode() { | |
$year = date('Y'); | |
return $year; | |
} | |
add_shortcode('year', 'year_shortcode'); |
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 if ( is_single() ) : ?> | |
[elementor-template id="556"] | |
<?php endif; ?> |
OlderNewer