Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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

sofiapapa08

@sofiapapa08
About
Posts
34
Topics
15
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • Submenu anchor not clickable when on another page + on mobile menu !
    S sofiapapa08

    @sofiapapa08 said in Submenu anchor not clickable when on another page + on mobile menu !:

    jQuery(document).on( 'click', 'a[href^="#"]', function(e){
    e.preventDefault();
    var hash = jQuery(this).attr('href');
    var el = jQuery(hash);
    var top = el.offset().top;
    jQuery('html, body').animate({
    scrollTop: top
    }, 300, 'swing',
    function() {
    window.location.hash = hash;
    }
    );
    } );

    Hi!
    I solved the question 1 and 2 by removing some things in the custom head content, here is my new code

    <script>
        
        window.laytheme.on('newpageshown', function(){
            var hash = window.location.hash; 
            var el = jQuery(hash);
            if(el.length > 0) {
                var top = el.offset().top;
                window.scroll(0, top);        
            }
        });
        
    </script>
    
    <script>
    window.laytheme.on("newpageshown", function(layoutObj, type, obj){
        
      jQuery("body").append('<div class="pointer"></div>');
        jQuery("body").on("mousemove", function(e) {
    	jQuery("nav.laynav .menu-item>a span").css({ top: e.clientY + "px", left: e.clientX + "px" });
    	
    });
    
      });
    </script>
    
    <script>
    jQuery(document).ready(function(){
    jQuery('li.menu-item a').addClass('scrollTo');
    });
    </script>
    

    For the question 3 I am still open to suggestions or any help :)

    Thanks have a great week-end!
    Sofia

    General Discussion

  • shortocdes on woocommerce product pages for ACF
    S sofiapapa08

    @arminunruh
    Hii!
    thanks:)

    I ate a lot of tutorials and FINALLY managed to do something that worked.
    I put here the magic link with all the explanation (short and simple by the way), maybe it is useful for someone til you install the shortcode tool on product page 💜

    Have a nice day!

    https://wplake.org/blog/woocommerce-product-page-template-with-acf-fields/

    General Discussion

  • Custom Alternative Mouse Cursor
    S sofiapapa08

    Hi!
    I was wondering if it's possible to have a mouse cursor with custom alternative arrows (switching black and white, like for the fixed Previous/Next Buttons).
    Thanks in advance, and have a great day,
    Sofia

    General Discussion
  • Login

  • Don't have an account? Register

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