Tagged: x
-
AuthorPosts
-
October 13, 2016 at 6:47 pm #1215389
armintzParticipantPromo code looks good in Chrome, but Firefox and Safari show an extra horizontal line above my photos.
Screenshot of what I’m referring to is attached – how can I remove this?
Example shortcode i’m using:
[promo]<a href="/corporate/eastman-kodak-it-outsourcing/"><img src="http://elizabethgray.wpengine.com/wp-content/uploads/2016/10/eastman-kodak.jpg" alt="eastman-kodak" width="300" height="300" class="aligncenter size-full wp-image-167" /></a></a><a href="/corporate/eastman-kodak-it-outsourcing/"><hr>Eastman Kodak: IT Outsourcing</a>[/promo]Will reply with link (site is in development/password protected)
Thanks
October 13, 2016 at 6:48 pm #1215397
armintzParticipantThis reply has been marked as private.October 14, 2016 at 12:09 am #1215720
LelyModeratorHi There,
Upon checking, you’re shortcode is incorrect. Should be something like this:
[x_promo image="http://elizabethgray.wpengine.com/wp-content/uploads/2016/10/eastman-kodak.jpg" alt="eastman-kodak"]<a href="/corporate/eastman-kodak-it-outsourcing/"><hr>Eastman Kodak: IT Outsourcing</a>[/x_promo]Hope this helps.
October 14, 2016 at 6:41 am #1216020
armintzParticipantLooks much better, but I should have mentioned i’m using a slightly modified promo code in order to link the image and not just the text below it (found in another support thread). This is better UX. Is this possible with your code?
October 14, 2016 at 8:11 am #1216104
armintzParticipantFYI i was able to solve this with javascript in customizer:
jQuery(document).ready(function($) { $('.x-promo').hoverclass(); }); // Hover Link (function($){$.fn.hoverclass=function(){return this.each(function(){$(this).bind('mouseover',function(){$(this).addClass('active')}).bind('mouseout',function(){$(this).removeClass('active')}).bind('click',function(){window.location=$('a',this).attr('href')})})}})(jQuery); and following under Custom > CSS in the Customizer:and this css in customizer:
.x-promo { cursor: pointer; }promo element shortcode:
[x_promo image="YOUR-IMAGE.JPG" alt="your-image-alt-text-here"]<a href="YOUR LINK GOES HERE">PROMO TEXT BELOW IMAGE GOES HERE</a>[/x_promo]October 14, 2016 at 8:44 am #1216132
JoaoModeratorGlad to hear it and thanks for letting us know,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1215389 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
