Shortcodes not working on home page

Question

I’ve searched and tried other solutions suggested here to no avail. Any help or suggestions will be greatly appreciated.

I am running Astra and Elementor Pro.

My problem is that shortcodes will not work on the home page.

This issue is isolated to the home page, and transfers to any page I set as home.

That is; if I replace the home page, the shortcodes on the new homepage cease working and the shortcodes on the old homepage (that is no longer the homepage) will start working.

Am I right to think this is likely related to my (default) template?

This is my front-page.php –

namespace ElementorProModulesThemeBuilderConditions;

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

class Front_Page extends Condition_Base {

    public static function get_type() {
        return 'singular';
    }

    public static function get_priority() {
        return 30;
    }

    public function get_name() {
        return 'front_page';
    }

    public function get_label() {
        return __( 'Front Page', 'elementor-pro' );
    }

    public function check( $args ) {
        return is_front_page();
    }
}

Thanks in advance for your help.

0
Dean 4 months 2021-06-19T22:14:55-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse