Can't get Inline option to work
-
Hi! I tried to post a comment on your WP blog but I didn’t see my comment post so I thought I’d try here as well.
We’re trying to use your plugin to set up a situation where an image can be clicked and it will open a lightbox window with custom HTML content in it.
It seems like your Inline HTML in Lightbox would be what we need to use (except instead of a text link we’d need the image to be the link), but I tried your code and it wouldn’t open in a lightbox.
First I tried to alter your code so that it would use an image and the visitor would click on the image and then the lightbox would open and show the custom HTML content I wanted to include. This is what I used, based on your documentation:
[wp_colorbox_media url=”#test” type=”inline” hyperlink=”https://www.mxcreativeradio.com/wp-content/uploads/2015/12/mx_creative_final-02-302×100.png”%5D
<div style=”display: none;”>
<div id=”test” style=”padding: 10px; background-color: #c90;”>
<p>My custom HTML content goes here
TEST TEST TEST</p>
</div>
</div>Because that didn’t work, I thought I should just try the Inline HTML in Lightbox with your text link code instead, exactly as you displayed it to be:
[wp_colorbox_media url=”#inline_content” type=”inline” hyperlink=”click here to open inline HTML”]
<div style=”display: none;”>
<div id=”inline_content” style=”padding: 10px; background-color: #c90;”>
<p>My custom HTML content goes here
TEST TEST TEST</p>
</div>
</div>But that didn’t open in a lightbox either. Could you please tell me what I’m doing wrong so I can get this to work?
Thanks very much for your help!
- The topic ‘Can't get Inline option to work’ is closed to new replies.