Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

S

SteveWTD

@SteveWTD
About
Posts
8
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cover option on mobile not working
    S SteveWTD

    Marius heres a link to a cover project page - I don't have the fullscreen option ticked like @zochovsky suggested and mine is still not working on mobile - I removed all custom css in case that was an issue and did not change anything. I don't have the disable on mobile checked either. https://nbd2.wingtipdesign.com.au/suburban-culture/

    Bug Reports

  • Cover option on mobile not working
    S SteveWTD

    Same problem

    Bug Reports

  • Enable Hash Navigation on carousel
    S SteveWTD

    Thanks Arminunruh
    so if I use the following

    <script>
    jQuery(document).on("click", ".id-28 .element-collection .element-wrap", function(event) {
    	
    	var slideno = jQuery(this).find("img").attr("alt");
              window.location.href = '/portfolio#' + slideno;
    });
    var urlhash = window.location.hash.substr(1);
    
    
    window.laytheme.on('newpageshown', function(){
    
    var mySwiper = document.querySelector('.swiper-container').swiper;
    
    // Now you can use all slider methods like
    mySwiper.slideTo(urlhash, 1, false);
    
    });
    </script>
    

    no matter what slider method I use I get error like "TypeError: undefined is not an object (evaluating 'mySwiper.slideTo')" this suggest a timing issue as the object is not there can you see where I am going wrong.
    Thanks for your help.

    Addons

  • Enable Hash Navigation on carousel
    S SteveWTD

    Looking at the docs for swiperjs
    https://swiperjs.com/demos/#hash_navigation
    if I want to navigate with the url hash feature
    I need to add these parameters to the swiper

    hashNavigation: {
            watchState: true,
          },
    

    there is reference in the api to add parameters after the swiper is initialised but I can't work this out my coding skills are not advanced eg

    var mySwiper = document.querySelector('.swiper-container').swiper
    
    // Now you can use all slider methods like
    mySwiper.slideNext();
    

    is this how it would be done Ive tested this above and it does not work? any help or pointers would be apreciated.
    Does the mySwiper variable have to be the same name as lay themes carousel variable if so what is it by default - layCarousel?

    Thanks

    Addons

  • Swiper js missing?
    S SteveWTD

    Thanks that showed it only appears when logged in to the Wordpress admin so I will ignore.

    Addons

  • Swiper js missing?
    S SteveWTD

    Thanks - Test site here
    https://nbd2.wingtipdesign.com.au

    Addons

  • Link to carousel slide
    S SteveWTD

    This may have been asked before but can anyone point to how to link to a particular slide in a carousel from a hyperlink on another page.
    With the flickity slider it was possible using javascript but I don't know how to with the updated carousel I notice that we can target the data id of the slide but wondering if anyone has done this already?
    Thanks

    Addons

  • Swiper js missing?
    S SteveWTD

    Hi there I have a fresh install today and I have noticed in the inspector I have a 404 on the below javascript - can anyone tell me what it does for the carousel and should this be missing I am using version 1.5.1 Carousel with 2.9.5 theme.

    Thanks

    https://mydomainamehere.com/wp-content/plugins/laytheme-carousel/frontend/assets/js/vendor/swiper.min.js.map

    Addons
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search