I’m wondering if there was any way to utilize the Lightbox shortcode and instead of content like an image or streaming video to just have text in a frame.
So, when I click on the button on the page, I want to have a Lightbox pop up and even be able to specify the height and width of the frame just displaying text in the frame itself. The code I was trying to use was:
[su_lightbox src="Text here with some <a href='http://www.website.com' target='_blank'>links here</a> and some more<br>and some more<br>stuff everywhere."][su_button]Example[/su_button][/su_lightbox]
And I don’t think that’s the right way to do this. I did also try the
[su=lightbox type="inline"method and was met with identical results.
I have about 14 lines (separated by
"<br>") and when I look at the preview of the page, the first 3 lines are gone, the fourth line – which should be text that is hyperlinked – is just plain text, and the rest of the content renders fine. The links display and act properly (which I was nervous about because being within the entire src=” ” section having to use just a single ‘ mark), but are displayed right there on the page. And in line with the last line of the content is this:
And directly in line with that is the button I had, which renders as it should look. Now the weird part is that when I click on the button or on any line on the page between lines 6 and the final line, the page darkens as it normally does with a Lightbox, and the first three missing lines of text are displayed all the way to the left of the page, vertically centered, and even selectable. If I try to select the text, the page goes back to normal, though. I double- and triple-checked all my code to make sure I closed every bracket and quotation marks, and even used an HTML checker and everything is fine.
Wondering if there is any way to create a frame for text to be displayed as a Lightbox using the shortcode (or even the long code).
- The topic ‘Displaying Text With HTML Formatting In Lightbox’ is closed to new replies.