• Resolved ratamatcat

    (@ratamatcat)


    Hello,

    Just created a popup but unsure how to use in my template for media attachments. Is there a shortcode available?

    thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Bel

    (@belimperial)

    Hi @ratamatcat

    Thank you for reaching out to us!

    As I understand, you want to use an image and include it in your popup content. Is that correct? If yes, you can use the ‘Add Media’ button on the popup editor to add an image to the popup content.

    Please see: https://share.getcloudapp.com/L1uBklv6

    However, if you are referring to the popup theme to include a media image as a background image, you will need the Advanced Theme Builder to add the image as part of the popup theme.

    Hope that helps. If your issue is resolved please take a moment to rate and review the plugin.
    If you still need help please message us directly at https://wppopupmaker.com/support/

    Thread Starter ratamatcat

    (@ratamatcat)

    Hi Bel Imperial,

    No sorry what I am after is the ability to make use of the popup I created within a PHP template file.

    I tried using Targeting > Media: Selected > My Media File (ID: 7256)

    Does this display the trigger/button on the front end web page for the above media file? I can’t seem to find it.

    Usually for developer a shortcode would allow the following to be placed into the template files PHP code at a precise location in the page:

    <?php echo do_shortcode("[shortcode]"); ?>

    Thanks,

    Bel

    (@belimperial)

    Hello @ratamatcat

    Thank you for getting back and clarifying the issue.

    The Media: Selected in the targeting option are for the images, graphics, audio, file or video in the media library of the WordPress site and not the PHP template.

    If you want to display a popup for the PHP template, I believe you will need the Advanced Targeting Conditions extension pluginCustom Conditions and create custom code for this.

    The way the Media: Selected works is when a user checks the attachment URL of a media like for example a pdf file, it will display the popup. Please see the below example. The popup is using a Trigger: Time Delay/Auto Open with a targeting condition – Media: Selected – PDF file.

    https://share.getcloudapp.com/Apuzjqlk

    If I load the attachment URL of the PDF file, it will display the popup – https://share.getcloudapp.com/qGu5dnY4

    I hope that helps.

    Let us know if you have any questions or clarification on this matter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use in media attachments template’ is closed to new replies.