Forum Replies Created
-
AuthorPosts
-
function livengrin_logo_addition($sub) {
$sub .= ‘<div class=”subtext-icon”><span class=”av-icon-char” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello”></span></div><div class=”subtext-paragraph”><p>Available 24/7<br/>215-638-5200</p></div>’;
return $sub;
}
add_filter(‘avf_logo_subtext’, ‘livengrin_logo_addition’);Thanks for your response. I have implemented the solution above. My understanding of the code was that everything with a class included in that ‘exclude:’ section of avia.js should not be lightboxed. If this is true, then why were elements such as the ‘.big-preview.single-big a’, which have a class of .lightbox-added, appearing in the lightbox. I ultimately solved the issue by using a page specific class coupled with that exact element and then removing the pointer events for same in css.
Example:
exclude: ‘.postid-9000 .big-preview.single-big a, .my-test-class, .noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*=”dropbox.com”]’,
I’ve been looking for a solution to exclude the featured image from the lightbox (either across the whole site or on particular pages). However, I cannot disable it completely per page as other elements below featured image require it.
I have done a fair amount of search and reading here in the forums and found what I thought would be the solution in editing avia.js as shown above and enqueueing in child theme. However, I noticed that the featured image link already has class .lightbox-added. Seems to me that section isn’t working as it should. Ideas?
- This reply was modified 8 years, 7 months ago by livengrin.
-
AuthorPosts