Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #513141

    Hi guys,
    i need that all the links (on square image, name post and date post) on the latest (3 in my widget) portfolio entries in the widget (see footer area, in the middle column) open in a lightbox and not on their content page. Is it possibile? Like in the promozioni page (site is in development).

    can you help me? thanks

    #513587

    Hi Nicola!

    have a look here and check out “Inline content”: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/#prettyPhoto

    Cheers!
    Andy

    #513594

    yes, it is nice. This solution could work:

    But the problem is that i’m using an Enfold widget in the footer area, so i cannot edit the code directly.

    #513622

    Hi!

    I have added following code to Functions.php file of your child theme

    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.newsbox a').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    Please review your website now

    Regards,
    Yigit

    #513624

    Hi!

    ahh … then you need to search a plugin for this special WordPress function. I found this one: https://de.wordpress.org/plugins/simple-lightbox/

    Cheers!
    Andy

    #513671

    @Yigit.

    It seems it does not work for me.
    All links in the footer (latest portfolio entries widget) open a new url (new panel)…

    #513679

    Hi!

    Yes, i understood you incorrectly. You can refer to Andy’s post above and go to Enfold theme options and uncheck “Lightbox Modal Window” to disable builtin lightbox

    Regards,
    Yigit

    #513693

    can you summarize all step by step (1. 2. 3.) ?

    please remember that I need only those links in the footer to open in lightbox (not all links at all).

    #514192

    Hey!

    How did you add the iframe=true query in the url? You can actually override the default portfolio link. Edit the portfolio item then look for the “Overwrite Portfolio Link setting”. Set it to define a custom link. Add the url with the iframe parameter.

    Regards,
    Ismael

    #514280

    Hi Ismael … it seems a little bit too complicated ….

    I insert in the item first one, Eastpack item) the custom url http://www.maxitracce.it/wp-content/uploads/2015/09/Eastpack.jpg?iframe=true, but now i have 2 bugs:

    1) the jpg frame is not full visible, and needs to be scrolled. I need it in full screen like other lightbox

    2) (of course) the click on the first item here below in the portfolio page opens in a frame too, not like the others 2 (felsini and nike)

    I’m pretty sure that the solution is to edit the widget behavior itself (the code), but I dot’ know how…
    please help me more.

    • This reply was modified 9 years, 1 month ago by niguli.
    #514299

    How did you add the iframe=true query in the url?

    I did not inserted it. Perhaps it comes from Yigit modification?

    #516270

    Hi!

    Thank you for the update. We removed the code on functions.php. Please try to add this in the Quick CSS field to resize the lightbox container:

    .mfp-iframe-scaler {
        min-height: 1000px;
    }
    

    Adjust the value if necessary. You might need to add css media queries to adjust the min-height property on smaller screens.

    Cheers!
    Ismael

    #516283

    thanks, i’m trying.
    which css rule can I use to align the image centered in the frame?

    #516761

    Hey!

    Please try this:

    body {
        text-align: center !important;
    }

    The modification might affect other areas in the site.

    Cheers!
    Ismael

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