This file contains hidden or 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
/* --------------------------------------------------------------------------- | |
* Force Elementor Library to use Canvas Template | |
* - this gist file name can also be used in your theme to override the template instead of this | |
* --------------------------------------------------------------------------- */ | |
function get_elementor_library_post_type_template( $single_template ) { | |
global $post; | |
if ($post->post_type == 'elementor_library') { | |
$single_template = dirname( __FILE__ ) . '/../../plugins/elementor/includes/page-templates/canvas.php'; | |
} |
This file contains hidden or 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 | |
return [ | |
'' => '3d_rotation', | |
'' => 'access_alarm', | |
'' => 'access_alarms', | |
'' => 'access_time', | |
'' => 'accessibility', | |
'' => 'account_balance', | |
'' => 'account_balance_wallet', |
This file contains hidden or 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 | |
return [ | |
'' => 'fa-500px', | |
'' => 'fa-address-book', | |
'' => 'fa-address-book-o', | |
'' => 'fa-address-card', | |
'' => 'fa-address-card-o', | |
'' => 'fa-adjust', | |
'' => 'fa-adn', |
This file contains hidden or 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 disable_elementor_dashboard_overview_widget() { | |
remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal'); | |
} | |
add_action('wp_dashboard_setup', 'disable_elementor_dashboard_overview_widget', 40); |
This file contains hidden or 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 | |
function opineo_review_func( $atts ) { | |
return readfile("https://www.opineo.pl/shop/latest.php?s=52913&w=500&n=4&secured=1"); | |
} | |
add_shortcode( 'opineo', 'opineo_review_func' ); | |
// Usage [opineo] in any shortcode supporting widget or content area |
This file contains hidden or 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 | |
function elementor_accordion_closed() { ?> | |
<script> | |
jQuery(document).ready(function() { | |
jQuery( '.elementor-accordion .elementor-tab-title' ).removeClass( 'elementor-active' ); | |
jQuery( '.elementor-accordion .elementor-tab-content' ).css( 'display', 'none' ); | |
}); | |
</script> | |
<?php } |
This file contains hidden or 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
/* | |
* In the section which you have the video background add something like el-show-video-mobile to the CSS ID field | |
* | |
* Then apply this CSS rule in the Custom CSS box and you should have the background video showing on mobile | |
* | |
* NOTE: The class elementor-hidden-phone is hardcoded in Elementor Section's rendered output & this hack only overrides the CSS rule set on it. | |
*/ | |
@media (max-width: 767px) { | |
body:not(.elementor-editor-active) #el-show-video-mobile > .elementor-background-video-container.elementor-hidden-phone { |
This file contains hidden or 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 | |
function nore_home_logo() { | |
$centered_logo = ''; | |
$handle = 'nore-style'; | |
$custom_logo_id = get_theme_mod( 'custom_logo' ); | |
$logo_render = wp_get_attachment_image_src( $custom_logo_id , 'full' ); | |
$centered_logo .= 'header .main-navigation ul > li.my-site-logo a {background-image: url(' . esc_url( $logo_render[0] ) . ');}'; | |
This file contains hidden or 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 // You probably don't need to add this opening PHP tag! | |
function my_custom_canvas_scripts() { | |
$classes = get_body_class(); | |
if ( in_array( 'page-template-elementor_canvas', $classes ) ) { ?> | |
<script type="text/javascript"> | |
<!--[Custom Script]><!--> | |
//(function($) { //Uncomment this for no conflict jQuery | |
// Add your script here |
This file contains hidden or 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 | |
/** | |
* Load Elementor styles on all pages in the head to avoid CSS files being loaded in the footer | |
*/ | |
function elementor_css_in_head(){ | |
if(class_exists('\Elementor\Plugin')){ | |
$elementor = \Elementor\Plugin::instance(); | |
$elementor->frontend->enqueue_styles(); | |
} | |
if(class_exists('\ElementorPro\Plugin')){ |
NewerOlder