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
/* 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
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 ); |
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; ?> |
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
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
/* 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
/* Site logo size */ | |
.header-image { | |
width: 310px; | |
} |
NewerOlder