![]() ![]() And there is no “rel^=”lightbox” on the object. I thought of writing a jQuery function to remove functionality, However, I have removed all JS functions that I could find that activate lightbox functionality. $(container).avia_activate_lightbox() Ĭleared cache and opened incognito opened in a different browser. I have (temporarily) // commented out //activates the prettyphoto lightbox vimeo\.com/), a, a, a',Įxclude : '.noLightbox. videoElements : 'a, a, a:regex(href. autolinkElements: 'a.lightbox, a, a, a, a, a, a, a, a, a, a, a, a, a:regex(href. I have (temporarily) // commented out avia-snippet-lightbox.js LINES 131,132 $.fn.avia_activate_lightbox = function(variables) I have added class “noLightbox” to the Image – visible in page source – this removes the classes: “lightbox-added” and “mfp-iframe” Set to open in a new window – page source shows target=”_blank” I have a placeholder image that has a manual URL link to a youtube video. So youtube videos open in new window and play directly at My client specifically wants to disable video lightbox function on certain videos. Hi this function is now located in enfold/js/avia-snippet-lightbox.js Height, bottom negative margin should be the same value.Ĭss – vary height, bottom negative margin and font size according to your longest headline. = trim( $output, $separator ) Īdd_action('wp_footer', 'ava_new_custom_script_masonry') įunction ava_new_custom_script_masonry()ġ column (viewport width smaller than 460px wide) font size = 14px $categories = get_the_terms( $key, 'tax_category' ) //change 'tax_category' to suit your registered post type taxonomy add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_loop_prepare_mod_cat', 10, 2 ) įunction avf_masonry_loop_prepare_mod_cat( $key, $entries ) However, I would really like to work out a solution using “Default enfold product gallery”Īre their any specific hooks or filters to achieve this?įor anyone else having the same problem – here is my final solution. Yes I can achieve this using WooCommerce 3.0 product Gallery and a plugin – YITH WooCommerce Featured Audio and Video Content Premium I’d also like the Video as the fist item in the product gallery. ![]() Hoping you can help update this code so that the filter works with Default enfold product gallery The Enfolds Gallery uses these two functionsĪvia_ woocommerce_thumbnail OR avia_ woocommerce_gallery_first_thumbnail I have implemented the code in the Child theme functions.php fileĪdded custom field “product_video” to the productĮnfold Child > Theme Options > Shop Options > Product Gallery = Default enfold product gallery (and not the WooCommerce 3.0 product Gallery)Ī quick multi-file test search of enfolds theme does not reveal the use of the function woocommerce_single_product_image_html What's the problem there? Whitelisting would do the job or it's bad approach? And how to do this properly.Is this still valid for 2021 version of Enfolds 4.8.6 ( tried also other versions like " *" etc., but it doesn't make any difference, still getting same error. "content_security_policy": "script-src 'self' object-src 'self'", I thing this should solve the problem, so I've added it to the manifest. Later on in the article its written we can add some origins to whitelist, so it would be able to load it form external source. In this case its rather hard, becouse the api.js has more links inside, and this one file doesnt do the job. Later in this article it says best way it to include the files into the project. Violates the following Content Security Policy directive: "script-src 'self'īlob: filesystem: chrome-extension-resource:".Īnd its okay, here we can learn why it works like that. js file(youtube API) It gives me error: Refused to load the script '' because it Problem happens with it comes to using external. There is a HTML code which can be copy-paste to try if it work and use it later. ![]() There is a quickstart guide in youtube API page. I try to connect youtube API to use it in "browser_action" popup. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |