• Hello I am using visual composer with all in one plug in and I am attempting to use Custom Content Shortcode to get the content from within a div that has and id. Reason be I want to be able to edit the text in one place and display it in multiple areas on the page using your Custom Content Shortcode.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kfulker

    (@kfulker)

    To elaborate I the visual composer element has an id
    example output inspect element when page is loaded

    <div id=’my-id”>Hello I want to be able to display this same text by using Custom Content Shortcut if possible </div>

    I have tried
    [pass field=my-id vc=true]
    [loop id={my-id}]
    [content]
    [/loop]
    [/pass]

    but have had no luck

    Thanks again

    This plugin is made to pull content from the database, not for pulling content from html-elements.

    If you want to be able to edit text on one place and display it on multiple areas, you can enable the “Meta Shortcodes module” under settings and create a shortcode for every text you want. Than you can put the shortcode where you want to display the text.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Pull text in a div on the page by it’s id’ is closed to new replies.