Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10888

    How to disable the lightbox function on portfolio images on the individual portfolio post page without loosing the link function on the collective thumbnail portfolio page. Now I put all portfolio images in Add featured media section on “no link” to avoid lightbox from appearing, but this also results in the portfolio thumbnails loosing their link to its individual post page. Setting only the first image out of 3 or 4 of the portfolio post in Add featured media section on “link manually” and its corresponding post http.. will generate the link back but gives again a link on the big post image. See: http://www.madeinspace.nl/producties where the first item have set differently to view.

    Another issue that occurred is with the dual language, this works fine everywhere except on the portfolio page of the secondary language http://www.madeinspace.nl/en/producties clicking on any portfolio item will generate the post of primary language instead of the secondary, being on the post and changing language will generate the right secondary language of its portfolio post. How to set this correctly or where to change the right link? I used qTranslate plugin.

    Thx

    #69719

    1) Try to replace following code in js/avia.js:

    //activates the prettyphoto lightbox
    if(jQuery.fn.avia_activate_lightbox)
    jQuery(container).avia_activate_lightbox();

    //activates the hover effect for image links
    var applyTo = container;
    if(container == 'body') applyTo = "#main";
    if(jQuery.fn.avia_activate_hover_effect)
    jQuery(applyTo).avia_activate_hover_effect();

    with:

    //activates the prettyphoto lightbox
    if(jQuery.fn.avia_activate_lightbox)
    jQuery(container).not('.single-portfolio').avia_activate_lightbox();

    //activates the hover effect for image links
    var applyTo = container;
    if(container == 'body') applyTo = "#main";
    if(jQuery.fn.avia_activate_hover_effect)
    jQuery(applyTo).not('.single-portfolio').avia_activate_hover_effect();

    2) I’m not sure why qtranslate doesn’t work correct in your case. To be honest I never used/tried this plugin before but based on some other threads it seems like the plugin is a bit buggy when it comes to taxonomies/terms and custom post types.

    #69720

    Thx for the reply,

    I used the new code but nothing seems to change. I left the settings as they were, in portfolio the two first items still have different settings to see the different effect.

    Concerning the second point, is in Coalition an option to manually set the corresponding links to portfolio item with dual languages.. If not what other translate plugin can you recommend, or that you know works fine with the template?

    #69721

    Hi!

    Coalition supports WPML but the integration is not perfect yet (eg portfolio overview pages can cause problems).

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘disable lightbox function on portfolio images and dual language conflict’ is closed to new replies.