• Resolved KSteuding

    (@ksteuding)


    how can i use shortcodes inside a Collapse-O-Matic quotes, e.g. title and swaptitle argument?

    e.g.
    [expand title=”this title text will come from a database and is called by the following shortcode: [snippet slug=”insert the colomat-title here” /]. clicking swaps text …”] swaptitle=”to this text which also calls a building block from a database
    [snippet slug=”insert-new-text-here” /]
    i know, it works inside the text between title and the closing expand.
    what i’m looking for is to get it also work inside quotation marks.
    [/expand]

    as the best collapse plugin on earth this couldn’t be too hard to work, right?

    best regards,
    Klaus

    https://www.ads-software.com/plugins/jquery-collapse-o-matic/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Baden

    (@baden03)

    Hmmm…. we’ll look into this and get back to you.
    Interesting, and just a bit crazy, idea–we like!

    In the mean time you might try the roll-your-own method described in the documentation.

    Thread Starter KSteuding

    (@ksteuding)

    very long time ago, one had a crazy idea inventing the wheel. for what because there were no roads? whats about today without wheels?

    colomat is really great. and it will become a stunning USP, as soon as it reliable works with shortcode inside it’s arguments.

    btw: would it also be a piece of cake for you, to select between multiple arrow symbols with an option? so colomat could have different look and feel inside the same page, making the decision for colomat more easy for visual-minded people ??
    i would be happy abut that, but maybe that is too hard to implement?

    regards, Klaus

    ps: i saw you located in hamburg. we could also talk in german per email if you like ??

    Thread Starter KSteuding

    (@ksteuding)

    to easily see the differences between working and not, i made two example pages:
    here the code is working on the andrina theme:
    https://stage.klaus-steuding.de/issue01/

    and her, the exact codes shows the issue on the mantra or parabola theme:
    https://wp.klaus-steuding.de/issue01/

    regards, Klaus

    Hi, I have installed your plugin and am trying to do the following:

    I would like to add a shortcode for a “Layer Slider” inside your Collomat shortcode: [expand title=”Show Slider”] [layerslider id=”29″][/expand] in order to allow a user to Show or Hide the slider.

    This did not work: [expand title=”Show Slider”] [layerslider id=”29″][/expand]

    I would like to achieve the following: When the page loads the slider is visible and the label should read: “Hide Slider”. When the slider is hidden, the label should read: “Show Slider”

    Any suggestions would be greatly appreciated.

    Kind regards
    Gary

    Plugin Author Baden

    (@baden03)

    KSteudling:

    The best way to do this would be not to use the shortcode, but rather the roll-your-own method:

    <div class="collapseomatic" title="Click to Expand" id="test01" >[snippet slug="insert the colomat-title here" /]</div>
    <span id="swap-test01" style="display: none;">snippet slug="insert-new-text-here" /]</span>
    
    <div id="target-test01" class="collapseomatic_content">target content</div>

    Hi, I am also trying to use shortcode for a image gallery plugin (BWS Gallery Plugin) withing the content of Collapse-O-Matic; but it expands all the targets by default on page load and collape stops working. As soon as I remove the gallery shortcode, everything works fine. I have even tried using roll-your-own method but got the same results.

    Here is the code I am using.

    <span class="collapseomatic" title="Fast Monkey" id="monkey1" >Fast Monkey</span>
    <div id="target-monkey1" class="collapseomatic_content">[print_gllr id=118]</div>

    Is it because multiple jQuery files crashing? Any solution to fix this?

    Regards
    Ketan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to use Shortcode inside Collapse-O-Matic quotes?’ is closed to new replies.