Can I have a background image in content modal called from a shortcode

Hey team,

I have an events calendar that lets me do things like call featured images using shortcode. Since the shortcode also allows me to automate the process with a “next event” tag, I am able to use the shortcode to keep all my event featured images up to date on my website. Hope you are following so far, but it is probably ok if you don’t.

I want to have a content modal that calls a background image using the plugin shortcode.

I saw this background image request and realized I would love that. But, I don’t know what edits I would have to make in the css and my functions file. Is that something you can tell me?

Thanks

Hi @KMCHTX,

We would love to help you, unfortunately, what you need is outside the scope of our support.
I will give you a guide though you have to do actual coding.

First, to display the outputed CSS on on a post or page, you need to use action filter.. Choose the filter that is suitable for what you need. Then inside the function, you might need this is_single function or is_page to check current page or post. Once you have the filter for post or page that’s the moment you can add the plugin shortcode for gettings the background image. I don’t know how the plugin shortcode works when it is added in the functions so you might need to consult the plugin developer.

In case this is more confusing for you, it would be best to consult a web developer. What you need is more than CSS implementation that is why it is outside the scope of our support. Thank you for understanding.

Thanks! I appreciate the help. I thought it might be too much, but it never hurts to ask

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.