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
/*---- convert a slider widget into a zoom box ---*/ | |
.db-slider-reveal .elementor-slide-description, | |
.db-slider-reveal .elementor-slide-button, | |
.db-slider-reveal .slick-slide-inner .elementor-background-overlay { | |
transition: all 1000ms ease-in-out; | |
} | |
.db-slider-reveal:not(:hover) .elementor-slide-description, | |
.db-slider-reveal:not(:hover) .elementor-slide-button, | |
.db-slider-reveal:not(:hover) .slick-slide-inner .elementor-background-overlay |
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
/*---- creating a block quote class for p tag ----*/ | |
.db-quote p:before { | |
content: '\f10d'; | |
} | |
.db-quote p::after { | |
content: '\f10e'; | |
} | |
.db-quote p:before , .db-quote p:after { | |
font-family: FontAwesome; |
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
/*---- Elementor UI Onion Skin Hack ----*/ | |
.elementor-editor-active .elementor:hover .elementor-section:not(:hover) { | |
opacity: 0.3; | |
z-index: 0; | |
} | |
.elementor-editor-active .elementor-section:hover { | |
z-index: 1 !important; | |
} |
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
/*--- create simple slide out on hover ----*/ | |
.db-hover-scale , .db-hover-slideout { | |
transition: all 0.35s ease-in-out !important; | |
} | |
.db-hover-box:hover .db-hover-scale { | |
transform: scale(1.02); | |
box-shadow: 0px 10px 10px 15px rgba(0,0,0,0.3); | |
} |
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
/*----- Toggle Widget - change icons -----*/ | |
.elementor-toggle .elementor-tab-title .elementor-toggle-icon .fa:before { | |
content: "\f067"; | |
} | |
.elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon .fa:before { | |
content: "\f068"; | |
} |
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( 'elementor/editor/after_enqueue_styles', function() { | |
echo '<style type="text/css"> | |
.elementor-panel .panel-elements-category-items { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: flex-start; | |
} | |
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
/* Elementor Image Carousel - Diamond Images */ | |
/* Images must be square */ | |
/* Images must be larger than the diagonal of the height/width on slick-slide-inner */ | |
/* Apply CSS class = db-diamond to carousel widget */ | |
.db-diamond .slick-slide-inner { | |
margin: 100px auto !important; /*Increase margin top 100px for larger images */ | |
display: block; | |
width: 400px; /* Images must be square and larger than the diagonal of this square */ |
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_insert_post', 'set_default_custom_fields'); | |
function set_default_custom_fields($post_id){ | |
if ( $_GET['post_type'] == 'page' ) { | |
add_post_meta($post_id, 'page_header_cta', '', true); | |
add_post_meta($post_id, 'page_header_cta_label', '', true); | |
} | |
return true; | |
} |