Display current wallet balance of Tera Wallet on Elementor page using HTML and JavaScript
P粉654894952
P粉654894952 2023-09-11 10:03:37
0
1
520

I implemented Tera Wallet on my WordPress website which displays the current balance in a specific text element on one page. Now, I want to retrieve the current balance text and display it in a specific text element on another page created using Elementor using HTML and JavaScript.

On the page showing the wallet balance, the HTML structure is as follows:

<div class="woo-wallet-content">
    <div class="woo-wallet-content-heading">
        <h3 class="woo-wallet-content-h3">Balance</h3>
        <p class="woo-wallet-price"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>500.00</bdi></span></p>
    </div>
</div>

On another page created using Elementor, I have an HTML element with a specific CSS class (for example ) in which I want to display the current wallet balance. The Elementor page structure is as follows:

<div class="elementor-text-class">Current Wallet Balance: <span id="balance-display"></span></div>

I want to retrieve the current balance text (e.g. "$500.00") from the first page and display it dynamically in a element using the IDThe balance is displayed on the second page.

Can someone help me code the HTML and JavaScript? This code can extract wallet balance text from one page and display it on another page using Elementor, HTML and JavaScript?

thanks for your help!

P粉654894952
P粉654894952

reply all(1)
P粉151466081

I use the tera wallet shortcode "[mini-wallet]" to display the wallet balance.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!