Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › lightbox anchor and svg icon
- This topic has 5 replies, 3 voices, and was last updated 10 years, 6 months ago by PragmaticPraxis.
-
AuthorPosts
-
July 3, 2014 at 9:10 am #11117PragmaticPraxisSpectator
I am hoping to find a way to do a combined text and icon link. I am using WP SVG Icons, which are placed with a Div or Span that contains a data-icon attribute. I would like to have this icon in line with the link text, and ideally part of the link. But at this point I can’t even get the icon and text on the same line. And, I am new to HTML and CSS, and know just barely enough to be dangerous.
So…
I have tried <div data-icon=””></div>[wp_lightbox_anchor_text_mp4_video link=”http://content.pragmaticpraxis.com/RB/file_dialog_places.mp4″ poster=”http://content.pragmaticpraxis.com/RB/file_dialog_places.png” text=”File Dialog ‘Places'”]
and
<div data-icon=””>[wp_lightbox_anchor_text_mp4_video link=”http://content.pragmaticpraxis.com/RB/file_dialog_places.mp4″ poster=”http://content.pragmaticpraxis.com/RB/file_dialog_places.png” text=”File Dialog ‘Places'”]</div>
and neither puts the icon and text in line. I even tried
[wp_lightbox_anchor_text_mp4_video link=”http://content.pragmaticpraxis.com/RB/file_dialog_places.mp4″ poster=”http://content.pragmaticpraxis.com/RB/file_dialog_places.png” data-icon=”” text=”File Dialog ‘Places'”]
on a lark. No love.
My last thought is to do two anchors, one with the image, and one with the text, and both link to the same video. But that seems inelegant, if there is a way to get a combined image and text anchor. And, if I have to I can drop the SVG Icons, but I would rather use them if it’s possible. Hoping for some class passthrough magic.
Thanks!
Gordon
July 3, 2014 at 9:57 am #64106PragmaticPraxisSpectatorI spend two days trying to solve this, and within half an hour of posting a question I figure it out? My Google-Fu is… fickle.
So, this works a treat. Only issue is the icon isn’t part of the link, but I think I am ok with that. And wordpress wants to replace the & in the data icon reference when switching modes, but I have come to accept that WP is the new FrontPage when it comes to things like this.
<div style=”float:left;display:inline;margin-top:1px;margin-right:1em” data-icon=””></div>[wp_lightbox_anchor_text_mp4_video link=”http://content.pragmaticpraxis.com/RB/disable_auto_apply.mp4″ poster=”http://content.pragmaticpraxis.com/RB/disable_auto_apply.png” text=”Disable Auto-Apply”]
July 3, 2014 at 2:57 pm #64107wzpModeratorI spend two days trying to solve this, and within half an hour of posting a question I figure it out? My Google-Fu is… fickle.
Don’t sweat it. The other day, I called Google Apps support after spending 2 days looking for a way to delete something, and when I finally got the support gal on the line, the “Delete” button was staring me in the face. She probably thought I was just looking for an excuse to talk to her
July 20, 2014 at 9:56 pm #64108PragmaticPraxisSpectatorSo, coming back to this topic…
I am now looking at having two video links, one to a high quality H.264 MOV file, and one to a low quality MP4 file for the poor saps using Internet Explorer. To make that work, the current approach of a non link icon with link text isn’t going to work. So, is there any possible way to get a Div to work as the “image” for a link? Conceptually something like this?
[wp_lightbox_mp4_video link=”http://www.example.com/h264-encoded-video.mp4″ source=<div style=”float: left; display: inline; margin-right: 1em; font-size: 1em;” data-icon=””></div>]
Or, better yet, can the lightbox take two links, and feed the MP4 only to IE, while the rest of the world gets the MOV?
Thanks!
Gordon
July 20, 2014 at 11:49 pm #64109wpCommerceModerator@PragmaticPraxis, unfortunately this option is not available in the plugin.
July 21, 2014 at 5:47 pm #64110PragmaticPraxisSpectatorThanks for the heads up. As it turns out I think I have found the right settings to get MP4 files to look as good as my MOV files where. For a while the MP4 where chock full o’ artifacts and I thought I would need to provide the two options. Now to go address the controls color.
Thanks!
Gordon
-
AuthorPosts
- You must be logged in to reply to this topic.