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

M

maxb

@maxb
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • "set image" button for Custom Mouse Cursor not working in fullscreen slider settings
    M maxb

    Hi there,

    I want to set a custom mouse cursor for the fullscreen slider but nothing is happening when I click the button "set image".

    WordPress 6.7.1
    LayTheme and Plugins are up to date

    I have tried it in Safari, Firefox and Chrome.

    Could you help me?

    Thanks!
    Max

    Bug Reports

  • change colour of sitetitel/menu on black row + sticky row
    M maxb

    Re: Change nav and logo text to white/black when scrolling

    Hi!

    I use the code of this thread (white text on .darkrow / .blackrow) to change the color of my sitetitel and menu when scrolling over dark background (via jQuery) and combined it with sticky rows (via css).
    Have a look here: https://www.maxbrunnert.de/portfolio-neu/

    But I have two problems I don't get solved:

    when the sitetitel/menu changed to white once, it does not change back to black
    the underline color of my menu does not change. for the underlining of sitetitel it works...

    Could someone help me? I guess there is an error because of the combination

    This is the code I use in custom CSS:

    .white {
    color: white!important;
    }
    
    /* Sticky Row */
    .sticky-row {
    position: sticky;
    top: 0;
    }
    
    /* Dark Row + Sticky Row */
    .sticky-blackrow {
    background: transparent;
    position: sticky;
    top: 0;
    }
    

    And this in Custom HTML at bottom:

    <!-- Dark Row -->
    <script>
        var offset = 50;
        var $blackRows;
        var $nav;
        
        window.laytheme.on("newpageshown", function(layoutObj, type, obj){
            $blackRows = jQuery(".blackrow");
            $nav = jQuery("nav a, .sitetitle span");
            $nav.removeClass("white");
        });
        
        jQuery(document).on("scroll", function(){
            $blackRows.each(function(){
                var rect = this.getBoundingClientRect();
                if(rect.top - offset < 0 && rect.bottom - offset > 0){
                    $nav.addClass("white");
                    return false;
                }else{
                    $nav.removeClass("white");
                }
            });
        });
    </script>
    
    <!-- Dark Row + Sticky Row -->
    <script>
        var offset = 50;
        var $blackRows;
        var $nav;
        
        window.laytheme.on("newpageshown", function(layoutObj, type, obj){
            $blackRows = jQuery(".sticky-blackrow");
            $nav = jQuery("nav a, .sitetitle span");
            $nav.removeClass("white");
        });
        
        jQuery(document).on("scroll", function(){
            $blackRows.each(function(){
                var rect = this.getBoundingClientRect();
                if(rect.top - offset < 0 && rect.bottom - offset > 0){
                    $nav.addClass("white");
                    return false;
                }else{
                    $nav.removeClass("white");
                }
            });
        });
    </script>
    
    General Discussion
  • Login

  • Don't have an account? Register

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