How to add Custom Text after entering the shortcode.

jumbowap
Posts: 1
Joined: 1 month ago

How to add Custom Text after entering the shortcode.

Postby jumbowap » 1 month ago

Hello,
Thank you for this useful plugin.
i have created a div class shortcode

<div class="Note-box"> Note:- THIS WILL BE CUSTOM TEXT</div>

I want to use different note text for different articles. How to use it so it will show work?

I have tried <div class="Note-box"> Note:- %%text%%</div>
<div class="Note-box"> Note:- %%content%%</div>

It doesn't seems to work. How to use shortcode in such way that i will able to add rich text in this.

Thank you.
User avatar
vaakash
Site Admin
Posts: 803
Joined: 7 years ago
Location: India
Contact:

Re: How to add Custom Text after entering the shortcode.

Postby vaakash » 3 weeks ago

If I understand correctly, please try the following.

Shortcode content:

<div class="note-box">%%thenote%%</div>

In your post:

Use the shortcode
[sc name="myshortcode" thenote="This is my customer note"]

Sent from my Redmi Note 3 using Tapatalk