So far using elementor short code, I was able to modify my account page in the php file created in the child theme: woocommerce / myaccount / dashboard.php
This works perfectly fine with the elementor shortcode, but the shortcode in Kadence Elements doesn’t work no matter what I try (the “Entire site” option is enabled in Elements).
It only puts the short code on the page instead of the Elements content – i.e. the short code is not executed.
How can you display an element like this?
Here is the code that works with Elementor:
if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly.
}
$allowed_html = array(
‘a’ => array(
‘href’ => array(),
),
);
?>
<div>
[kadence_element id="1679"]
</div>
<?php
/**
* My Account dashboard.
*
* @since 2.6.0
*/
do_action( ‘woocommerce_account_dashboard’ );
/**
* Deprecated woocommerce_before_my_account action.
*
* @deprecated 2.6.0
*/
do_action( ‘woocommerce_before_my_account’ );
/**
* Deprecated woocommerce_after_my_account action.
*
* @deprecated 2.6.0
*/
do_action( ‘woocommerce_after_my_account’ );