Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Thread Starter castorpollux285

    (@pascal2851981)

    Thanks for your fast reply.

    I already tried the following:

    <?php echo do_shortcode('[expand title="Mehr Erfahren" swaptitle="Weniger" targclass="collapse-container" id="impressum" rel="star-highlander" findme="auto" trigclass="mehr-erfahren-trigger" tag="div"]Content[/expand]'); ?>

    But that does not work…

    It looks like this on the Site:

    Mehr Erfahren
    Content

    Plugin Author twinpictures

    (@twinpictures)

    check the plugin settings and verify that ‘shortcode loads scripts’ is not checked.

    Thread Starter castorpollux285

    (@pascal2851981)

    It is not checked.

    Plugin Author twinpictures

    (@twinpictures)

    The code you posted above should work. can you share a link to the page you are testing this on?

    Thread Starter castorpollux285

    (@pascal2851981)

    https://krenn.design/collapse-o-matic/

    It’s located at the bottom in the blue rectangle.

    Plugin Author twinpictures

    (@twinpictures)

    the shortcode is being processed correctly.
    However, the javascript and css files are not being inserted in the header or footer. Does the shortcode work when placed as normal in a test post or page?

    Also, check the js console, you have three errors being thrown.

    As it seems this is a custom built theme, please ensure that wp_head() is being used in the header.php file and wp_footer() is used in the footer.php file. Regardless, this is beyond the support of our plugin.

    Thread Starter castorpollux285

    (@pascal2851981)

    Adding wp_head() and wp_footer() fixed the problem.

    Thank you very much!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Insert shortcode in template’ is closed to new replies.