', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'adas_portfolio_pingback_header' ); // Define the function to check Elementor activation and usage function adas_portfolio_active() { // Check if Elementor is active if (defined('ELEMENTOR_PATH')) { // Check if the current page is built with Elementor $post_id = get_queried_object_id(); if (\Elementor\Plugin::$instance->db->is_built_with_elementor($post_id)) { return 'container-elementor'; } } } // Hook the function to an appropriate action (e.g., init) add_action('init', 'adas_portfolio_active'); // Post Excerpt Limit function adas_portfolio_wpdocs_custom_excerpt_length( $length ) { $excerptlength = absint(get_theme_mod('adas_portfolio_post_excerpt',22)); return $excerptlength; } add_filter( 'excerpt_length', 'adas_portfolio_wpdocs_custom_excerpt_length', 999 ); // Dashboard Notice function adas_portfolio_display_dashboard_notice() { ?>