KlbTheme – Premium WordPress Themes
0
Cart
  • Home
  • Themes
    • Architecture
    • Corporate
    • Creative
    • eCommerce
    • Nonprofit
      • Charity
      • Church
    • Onepage
    • Personal
    • Photography
    • Portfolio
  • Blog
  • Support
  • Contact Us
FEATURED ITEM

Elementor – if the page is_elementor

  • February 15, 2020
  • WordPress
  • Leave a comment

You can use the following code to check Elementor Builder has used for a page.

if ( Elementor\Plugin::instance()->db->is_built_with_elementor( get_the_ID()) ) {
    //page is build with elementor
}

// or by checking directly
$elementor_page = get_post_meta( get_the_ID(), '_elementor_edit_mode', true );
if ( ! ! $elementor_page ) {
    //page is build with elementor
}
  • Tags:
  • conditional tag
  • detect page for elementor
  • elementor
  • elementor condition
  • elementor edit mode
  • is_elementor

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Click here to cancel reply.

Recent Posts

  • [SOLVED] get_current_page was called incorrectly
  • Top Facts About Data Recovery Software
  • Problems with order by woocommerce
  • Kirki Customizer Framework – Buttons don’t showing
  • Yith Compare plugin Broken on mobile devices [SOLVED]

Recent Comments

    Archives

    • January 2021
    • December 2020
    • November 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • August 2018
    • May 2018

    Categories

    • Uncategorized
    • WooCommerce
    • WordPress

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    KlbTheme provides WordPress Themes and Website Templates.Charity WordPress Theme, Architecture WordPress Theme, Corporate WordPress Theme, Personal WordPres Theme

    TWITTER FEED

    • Bacola - How to use Elementor Templates for Shop? https://t.co/vM5kaNGVjk #elementor #woocommerce48 days ago
    • Furnob - Furniture Store WordPress eCommerce Elementor Theme #furniture #woocommerce #ecommerce #elementor… https://t.co/hZzbkri8X5108 days ago

    QUICK LINKS

    • Home
    • Corporate Themes
    • Nonprofit Themes
    • Contact Us
    • Support

    Newsletter

    Copyright 2021.KlbTheme . All rights reserved