The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
/* --------------------------------------------------------------------------- | |
* 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'; | |
} |
<?php | |
return [ | |
'' => '3d_rotation', | |
'' => 'access_alarm', | |
'' => 'access_alarms', | |
'' => 'access_time', | |
'' => 'accessibility', | |
'' => 'account_balance', | |
'' => 'account_balance_wallet', |
<?php | |
return [ | |
'' => 'fa-500px', | |
'' => 'fa-address-book', | |
'' => 'fa-address-book-o', | |
'' => 'fa-address-card', | |
'' => 'fa-address-card-o', | |
'' => 'fa-adjust', | |
'' => 'fa-adn', |
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); |
<?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')){ |