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
/* Make Elementor elements expand to fit the full available width - due to how EL puts padding | |
all the way round columns */ | |
.elementor-section-boxed .elementor-column-gap-default > .elementor-row { | |
width: calc(100% + 20px); | |
margin-left: -10px; | |
margin-right: -10px; | |
} | |
.elementor-section-boxed .elementor-column-gap-narrow > .elementor-row { | |
width: calc(100% + 10px); | |
margin-left: -5px; |
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('add_to_cart_redirect', 'cw_redirect_add_to_cart'); | |
function cw_redirect_add_to_cart() { | |
global $woocommerce; | |
$cw_redirect_url_checkout = $woocommerce->cart->get_checkout_url(); | |
return $cw_redirect_url_checkout; | |
} |
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
line-height: 25px; /* within paragraph */ | |
margin-bottom: 20px; /* between paragraphs */ | |
} |
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
@media (min-width:768px) and (max-width:950px) { | |
selector .elementor-row { | |
flex-wrap:wrap; | |
} | |
selector .elementor-colum { | |
width: 50%; | |
} | |
} |
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_number_of_fonts','tu_show_all_available_google_fonts' ); | |
function tu_show_all_available_google_fonts() { | |
return 'all'; | |
} |
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_front_page() ) : ?> | |
This content will only show on the static front page | |
<?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
<?php if ( is_page(22) ) : ?> | |
[elementor-template id="556"] | |
<?php endif; ?> |
NewerOlder