Livemesh Addons for Elementor Shortcode

Below, you’ll find a detailed guide on how to add the Livemesh Addons for Elementor Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Livemesh Addons for Elementor Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Livemesh Addons for Elementor Plugin and the shortcodes it provides:

Plugin Icon
Livemesh Addons for Elementor

"Livemesh Addons for Elementor is a robust plugin that enhances your WordPress experience by providing extra widgets and addons specifically designed for the Elementor page builder."

★★★★☆ (154) Active Installs: 70000+ Tested with: 6.3.2 PHP Version: 5.6
Included Shortcodes:
  • [lae_pricing_item]

Livemesh Addons for Elementor [lae_pricing_item] Shortcode

The ‘lae_pricing_item’ shortcode is a part of the addons-for-elementor plugin. It’s used to display a pricing item on a website. This shortcode takes two parameters – ‘title’ and ‘value’. The ‘title’ parameter sets the name of the pricing item, while ‘value’ sets its price. The shortcode returns a pricing item template, which is then displayed on the website.

Shortcode: [lae_pricing_item]

Parameters

Here is a list of all possible lae_pricing_item shortcode parameters and attributes:

  • title – Defines the title of the pricing item
  • value – Sets the specific price for the pricing item

Examples and Usage

Basic Example – A basic usage of the ‘lae_pricing_item’ shortcode involves defining the ‘title’ and ‘value’ attributes.

[lae_pricing_item title="Basic Plan" value="$10/month"]

Advanced Examples – The ‘lae_pricing_item’ shortcode can be used with more than two parameters for more complex scenarios.

Example 1: Using the shortcode to display a pricing item by referencing both ‘title’ and ‘value’. If the ‘title’ is not found, it will display the ‘value’ and vice versa.

[lae_pricing_item title="Premium Plan" value="$20/month"]

Example 2: Using the shortcode without a ‘title’ or ‘value’ will result in an empty pricing item being displayed. This can be useful for creating placeholder pricing items in your pricing table.

[lae_pricing_item]

PHP Function Code

In case you have difficulties debugging what causing issues with [lae_pricing_item] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'lae_pricing_item', array( $this, 'pricing_item_shortcode' ) );

Shortcode PHP function:

function pricing_item_shortcode( $atts, $content = null, $tag = "" )
    {
        $title = $value = '';
        $args = shortcode_atts( array(
            'title' => '',
            'value' => '',
        ), $atts );
        $output = lae_get_template_part( 'addons/pricing-table/pricing-item', $args, true );
        return $output;
    }

Code file location:

addons-for-elementor/addons-for-elementor/includes/widgets/pricing-table.php

Conclusion

Now that you’ve learned how to embed the Livemesh Addons for Elementor Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

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