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.
Hey charger70!
Please add your image link as following
<a class="noLightbox" href="http://www.linktoyourimage.com">Hi-res Download</a>
Cheers!
Yigit
where 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.
i 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?
Hi!
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