• M
    maximilianm

    I have some videos in my carousel slider and autoplay for videos activated (at Fullscreen slider addon). But I don't want the videos to be looped - they should only play once and then stop with the last frame.
    Is that somehow possible? Change in js somewhere?
    Thanks for any help!

    posted in General Discussion read more
  • M
    maximilianm

    Hmm it should be somehow possible with keydown, or?
    At least when using fullscreen slider and carousel addon – the currently shown carousel would be in an active row then.

    Maybe with a switch function:
    if keydown case 37 > function for scroll to previous slide (same that is called when clicking in the left half of the carousel)
    if keydown case 39 > function for scroll to next slide (same that is called when clicking in the right half of the carousel)

    posted in Addons read more
  • M
    maximilianm

    @DMB
    Nice one thanks!

    Will check it out asap, though I don't think it works in my case as my links refer to another page (not the same as anchor) so I'm not sure if the script works.

    posted in General Discussion read more
  • M
    maximilianm

    Or maybe it's because how Laytheme handles links with anchors?

    When I enter
    http://domain.com/page#anchor
    it's changed to
    http://domain.com/page/anchor

    It only works correct when I'm already on the page, where the anchor is.

    posted in General Discussion read more
  • M
    maximilianm

    This here at custom head content results in a
    TypeError: undefined is not an object (evaluating '$(target).offset().top')

    <script>
    jQuery(document).ready(function($){
        var jump=function(e)
    {
       if (e){
           e.preventDefault();
           var target = $(this).attr("href");
       }else{
           var target = location.hash;
       }
    
       $('html,body').animate(
       {
           scrollTop: $(target).offset().top
       },2000,function()
       {
           location.hash = target;
       });
    
    }
    
    $('html, body').hide();
    
    $(document).ready(function()
    {
        $('a[href^="#"]').bind("click", jump);
    
        if (location.hash){
            setTimeout(function(){
                $('html, body').scrollTop(0).show();
                jump();
            }, 0);
        }else{
            $('html, body').show();
        }
    });
    });
    </script>
    

    posted in General Discussion read more
  • M
    maximilianm

    Hi all, I have a question:
    I have one overview page with various projects, one project per row. Now when somebody is on a project subpage a link from there should go back to the overview page and then smooth scroll to the row with the project he was before.

    I gave all rows on overview page a unique id and the link on the subpage to get back is like href="www.domain.com/overviewpage/#id". Now I need a script for anchor and smooth scroll, right? Can somebody help? All threads regarding scrolling to anchors here in the forum couldn't solve the problem.

    posted in General Discussion read more
  • M
    maximilianm

    @helen i added the class to the carousel itself, not the row (i think it was the row in rsepierre's example because there the carousel covers the whole row - maybe you try that. :)

    posted in Addons read more
  • M
    maximilianm

    @rsepierre
    Wow that's great! Thanks a lot for the code, works very smooth actually. I cropped all images in the slideshow with css to thumbnails with same height & width – now I'm wondering if it's possible to do the carousel without autoplay (like arrows or hover area on the left/right side) and combine it somehow with Lightbox.
    If lightbox plugin is activated for that page, why doesn't it open when clicking on the images in the carousel? does the lightbox ignore those in the carousel? Could it be that there's a workaround for this?

    posted in Addons read more
  • M
    maximilianm

    So I got the following problem: There are several pictures in one row with lightbox on.

    Now it would be nice, if the lightbox is limited to the images that are in the same row and shows numbers. Like ¼ in upper left corner and after the last one in the row it closes.

    Is that somehow possible (with a lot of tweaks)?

    0_1489860124874_Bildschirmfoto 2017-03-18 um 19.01.09.png

    posted in Addons read more

Looks like your connection to Lay Theme Forum was lost, please wait while we try to reconnect.