Support » Plugin: WP Mautic » Can Focus items be displayed site wide

  • Resolved danzmwl



    Can Focus items be displayed sitewide?

    I have created a focus item, so that when visitors go to leave the website, a newsletter
    signup focus item pops up.

    How can I embed the focus item shortcode, so that it appears anywhere on the website? I can only work out how to embed it on individual pages.

Viewing 1 replies (of 1 total)
  • Plugin Author shulard


    Hello @danzmwl !

    Currently, there is no simple way to interpret shortcodes outside of the page content (by simple I mean without writing custom theme code).

    But you can use the do_shortcode function to interpret a shortcode anywhere in your theme (for example in the footer.php fileā€¦).

    Here is an example of the code to be used with the focus item “1” :

    <?= do_shortcode('[mautic type="focus" id="1"]'); ?>

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.