Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #719353

    Hey Enfold-Support-Team,

    at first, if you need to take a look at the site please send me your current ip, so i can let you in.
    Now to the problem.

    Following code i added to a multilingiual (WPML) widget added to the footer (its some more links with images in real, but’s all the same):
    `CLIMB!

    on the Homepage the solution with the .noLightbox Class is working, but on woocommerce sites not.
    Even better would be to group it in a seperate Light-Box Gallery. Or turn the function off in footer to prevent product photos mixing with the footer images in the lightbox.

    Thanks for help,
    Best
    Jan

    #721103

    Hey Jan,

    Please go to Enfold/js/avia.js and find

    
    exclude			:	'.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]',
    

    and change it to

    
    exclude			:	'#footer , #footer  a,.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]',

    If you are using a child theme, please add following code to Functions.php file of your child theme

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    and move modified file inside /js folder

    Best regards,
    Yigit

    #721228

    Hi Enfold-Support-Team,

    I have this same problem. On a lightbox gallery, all photos are open on the footer, so they are shown “out of the window sight”. You must scroll down to see them.

    I have set the fixings as stated on your previous post, but the problem persists.

    Kind regards,

    JG

    #721528

    Hey Yigit,

    I already tried this solution before i posted here. Now i tryed again, nothing changes.

    Bute now after updateing WPML it shows: Warning: Illegal string offset ‘language_code’ in /home/cu/web/sicherungsbrille.de/public_html/technik/themes/enfold/config-wpml/config.php on line 488

    I think this doesn’t conflict, but now you know it.

    Back to the problem with the light box.
    An even better solution would be to have a secont LightBox-Galery. This solution i would prefer.
    …..
    Now got your Solution working, but i had to change something more. Changed this (look for the [] for the arrays):
    var defaults = {
    groups : [‘.avia-slideshow’, ‘.avia-gallery’, ‘.av-instagram-pics’, ‘.portfolio-preview-image’, ‘.portfolio-preview-content’, ‘.isotope’, ‘.post-entry’, ‘.sidebar’, ‘#main’, ‘.main_menu’],
    autolinkElements: ‘a.lightbox, a[rel^=”prettyPhoto”], a[rel^=”lightbox”], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=”.jpg?”], a[href*=”.png?”], a[href*=”.gif?”], a[href*=”.jpeg?”], a[href$=”.mov”] , a[href$=”.swf”] , a:regex(href, .vimeo\.com/[0-9]) , a[href*=”youtube.com/watch”] , a[href*=”screenr.com”], a[href*=”iframe=true”]’,
    videoElements : ‘a[href$=”.mov”] , a[href$=”.swf”] , a:regex(href, .vimeo\.com/[0-9]) , a[href*=”youtube.com/watch”] , a[href*=”screenr.com”], a[href*=”iframe=true”]’,
    exclude : ‘.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*=”dropbox.com”]’,
    },

    to this:
    var defaults = {
    groups : [‘.avia-slideshow’, ‘.avia-gallery’, ‘.av-instagram-pics’, ‘.portfolio-preview-image’, ‘.portfolio-preview-content’, ‘.isotope’, ‘.post-entry’, ‘.sidebar’, ‘#main’, ‘.main_menu’],
    autolinkElements: [‘a.lightbox, a[rel^=”prettyPhoto”], a[rel^=”lightbox”], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=”.jpg?”], a[href*=”.png?”], a[href*=”.gif?”], a[href*=”.jpeg?”], a[href$=”.mov”] , a[href$=”.swf”] , a:regex(href, .vimeo\.com/[0-9]) , a[href*=”youtube.com/watch”] , a[href*=”screenr.com”], a[href*=”iframe=true”]’],
    videoElements : [‘a[href$=”.mov”] , a[href$=”.swf”] , a:regex(href, .vimeo\.com/[0-9]) , a[href*=”youtube.com/watch”] , a[href*=”screenr.com”], a[href*=”iframe=true”]’],
    exclude : [‘#footer , #footer a, .noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*=”dropbox.com”]’],
    },

    ok, now it works, but please tell me how to do the Trick for a second Slideshow Gallery. Is it “Magnific Popup” in original? if so, it would do that for me, probably the function for this is already there, but i don’t se it in the code.

    Best
    Jan

    #721531

    @JG

    if i understand your problem right, it is an other Problem, so please open an own thread for this.

    Best
    Jan

    #723109

    Hi,

    Regarding WPML issue, please add following code to functions.php file in Appearance > Editor

    /**
    * This fixes the issue with truncated links in Enfold theme with WPML 3.6.0
    * WARNING: ILLEGAL STRING OFFSET 'LANGUAGE_CODE' IN …\WP-CONTENT\THEMES\ENFOLD\CONFIG-WPML\CONFIG.PHP ON LINE (number of line)
    */
    add_action( 'init', 'wpmlcore_3776_temporary_fix' );
    function WPMLcore_3776_temporary_fix() {
    remove_filter( 'WPML_filter_link','avia_change_wpml_home_link', 10 );
    }

    Enfold is using modified version of Magnific Popup plugin. If you would like, you can disable it in Enfold theme options and use any other lightbox plugin as a standalone plugin.


    @jorgegurbindo
    we have replied you here – https://kriesi.at/support/topic/lightbox-gallery-opens-image-out-of-the-window/. Let us continue there

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.