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
/* 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
/* Custom CSS by Dave Foy - https://www.designbuildweb.co - hello@designbuildweb.co */ | |
/* 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
/* GeneratePress Header fix for problem break points | |
Change the 900px value in two places to where you have nav/logo overlap */ | |
@media(min-width:769px) AND (max-width:900px) { | |
.inside-header { | |
display: flex; | |
flex-flow: row wrap; | |
justify-content: center; | |
} | |
#site-navigation { | |
min-width: 900px; |
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
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
function my_custom_sizes( $sizes ) { | |
return array_merge( $sizes, array( | |
'content' => __( 'Content' ), | |
) ); | |
} | |
add_filter( 'image_size_names_choose', 'my_custom_sizes' ); |
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_image_size( 'content', '800', '9999', false ); |
NewerOlder