-
AuthorPosts
-
October 23, 2013 at 5:10 pm #179795
Hi – please see this page for an example:
http://www.costcat.com/2013/10/22/december-29-2012-never-too-early/
i am using button shortcodes to link to the full-size version of the image (the image preview is a smaller version; i want the user to be able to save and download the 2000-pixel-wide version as a desktop picture).
however, the button links to the image using lightbox – i would prefer an “open in new window” command (which i stated in the button shortcode generator screen) but it still links to lightbox. how can i deactivate the lightbox for this button ONLY while leaving lightbox functioning elsewhere on the site?
thanks in advance for your help.
October 23, 2013 at 8:22 pm #179905Hey charger70!
Please add your image link as following
<a class="noLightbox" href="http://www.linktoyourimage.com">Hi-res Download</a>Cheers!
YigitOctober 24, 2013 at 12:40 am #180005where should this class tag go in this button shortcode, yigit?
[av_button label='Download hi-rez' link='manually,http://www.costcat.com/wp-content/uploads/2013/10/langers-102313.jpg' link_target='_blank' color='theme-color-subtle' custom_bg='#444444' custom_font='#ffffff' size='large' position='center' icon_select='yes' icon='ue887' font='entypo-fontello']i don’t see any place that has a traditional a href tag at all.
October 24, 2013 at 12:48 am #180006i tried adding class=’noLightbox’ to that shortcode, but it does not work.
are you saying i need to abandon using button shortcodes and go to traditional ahref links only?
October 25, 2013 at 7:32 am #180525Hi!
Edit config-templatebuilder > avia-shortcodes > button.php, find this code:
$output .= "<a href='{$link}' class='avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Replace it with:
$output .= "<a href='{$link}' class='noLightbox avia-button ".$this->class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >";Best regards,
Ismael -
AuthorPosts
- The topic ‘Deactivate lightbox effect on button image links ONLY’ is closed to new replies.
