Tagged: ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #595141

    I would like that when I make click on a photo, appears on the screen a lightbox or similar with a text+photo.
    Something, similar to this page (where photos of people are), but instead of open a new page, open a light box with text+photo.

    Is there a way to do it? Any idea?

    Thanks.

    #595229
    #595569

    Hi Andy,

    That is the idea that I want to improve (Inline content). But I have a small problem. I do not know where I have to added the code. I have tried adding a code in the first imagen (as a trial), but I think I have to added some code in the begining of the page, but I do not where, or I have to install something else…

    Could you help me?

    #595674

    Hey!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_hotspot(){
    ?>
    <script>
    jQuery('.open-popup-link').magnificPopup({
      type:'inline',
      midClick: true
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_hotspot');

    and then add your image as following
    <a href="#test-popup" class="open-popup-link"><img src="http://kriesi.at/wp-content/themes/kriesi/images/logo.png"></a><div id="test-popup" class="white-popup mfp-hide">Popup content</div>

    Regards,
    Yigit

    #595741

    I have added the code as you told (in function.php, although I have put it at the beginning, because I could not find a place where you told (Appaeareance)… but it should work, anyway.

    And later I have add my image. So the image appears, but nothing happen with the pop up…

    Could you help me?
    Thanks.
    Almudena.

    #595745

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .white-popup {
      position: relative;
      background: #FFF;
      padding: 20px;
      width: auto;
      max-width: 500px;
      margin: 20px auto;
    }

    Cheers!
    Yigit

    #595801

    It is not working, when I do click on the imagen the screen go a bit up, but it does no appears a lightbox…

    #595916

    Hey!

    Can you please try de-activating all active plugins and check if that helps? If not, please try re-updating the theme – http://kriesi.at/documentation/enfold/updating-your-theme-files/
    There seems to be an issue with js files at the moment

    Cheers!
    Yigit

    #596237

    I have done all what you told me, but it still is not working.

    #596251

    Hey!

    As i understand when a user click on the picture the information should open in a lightbox correct?

    Please add ” ?iframe=true ” to the end of the URL in the image edit options.

    When you create a page select no header and footer from the right sidebar option in the page backend options.

    It will look something like the screenshot

    Cheers!
    Vinay Kashyap

    #596300

    That is!! Thank you very much!!

    Good day!!

    #596729

    Hey!

    Glad we could help! We have put together some info about enfold theme please feel free to check it out here – http://kriesi.at/documentation/enfold/

    Regards,
    Vinay Kashyap

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Lightbox o similar’ is closed to new replies.