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

mariusjopenM

mariusjopen

@mariusjopen
Global Moderator
About
Posts
5.3k
Topics
1
Shares
0
Groups
1
Followers
13
Following
1

Posts

Recent Best Controversial

  • Z index fixed element
    mariusjopenM mariusjopen

    Dear @lortnok
    we will write it down for the future to use z-index in the gridder.

    Best!

    Marius

    General Discussion

  • rotate text about 90 degrees
    mariusjopenM mariusjopen

    Hi Florian!

    Sure! Have a look here:

    https://www.w3schools.com/cssref/css3_pr_transform.asp

    div {
        -ms-transform: rotate(7deg); /* IE 9 */
        -webkit-transform: rotate(7deg); /* Chrome, Safari, Opera */
        transform: rotate(7deg);
    }
    

    you can add the code to your custom CSS.

    Good luck!

    Marius

    General Discussion

  • Dark mode β€” is it possible?
    mariusjopenM mariusjopen

    Dear @Hayo-Gebauer

    Have a look here:

    jQuery(document).on("click", ".clickme", function(event) {
    jQuery("body").toogleClass("dark-mode-on");
    });
    

    This toggles a class called "dark-mode-on" in the top of your page.

    You can then use CSS with children elements to make the change. For example:

    .dark-mode-on .site-title {
    color: red;
    }
    
    .dark-mode-on ._Default {
    background-color: yellow;
    }
    

    Just to give you a rough idea…

    Hope that helps!

    Best!

    Marius

    General Discussion

  • Project filtering / Isotope filtering
    mariusjopenM mariusjopen

    Dear @logancollins
    I will write it down for future improvements!

    Good point!

    Best!

    Marius

    General Discussion

  • Html5 Video - Full Screen Aspect Ratio
    mariusjopenM mariusjopen

    Dear @sebastianpetrov

    ok, I can see what you mean.

    Try to add this into your CUSTOM CSS code:

    .html5video video {
        object-fit: contain;
    }
    

    Berst!

    Marius

    General Discussion

  • How can I hide the active menu link from the menu on mobile?
    mariusjopenM mariusjopen

    Dear @piero101
    have a look here:

    .mobile-nav .current-menu-item {
        display: none !important;
    }
    

    Best!

    Marius

    General Discussion

  • Categorize projects without adding them manually
    mariusjopenM mariusjopen

    Dear @flob13
    we agree. A filter would be good.

    We have it written down for future improvements.

    Best!

    Marius

    General Discussion

  • px instead of %
    mariusjopenM mariusjopen

    Dear @EN
    good point. We will write that down.

    Best!

    Marius

    Feedback

  • masonry grid
    mariusjopenM mariusjopen

    Hi Plateau!
    Still developing the new version of LayTheme.

    We have many things and features to implement :-)

    Best!

    Marius

    Feedback

  • We need better customization for mobile menus
    mariusjopenM mariusjopen

    Dear @edgrbnz
    thank you for the valuable information πŸ™‚

    Dear @alexpko
    yes. We will write this don for the future!

    Best!

    Marius

    Feedback

  • Zoom in cover image, if aspect ratio doesn't fit image
    mariusjopenM mariusjopen

    Dear @neunzehnachtneun
    happy it works!
    Best!

    Marius

    Feedback

  • RSS Feed
    mariusjopenM mariusjopen

    Dear @edgrbnz
    we will have a look if this is possible to be implemented in a short time.

    Thank you for the tip!

    Best!

    Marius

    Feedback

  • Custom CSS menu option for more than 1 subpage menu
    mariusjopenM mariusjopen

    Dear @lauramas
    can you provide a link that we can have a look?

    Best!

    Marius

    Bug Reports

  • Lightbox Mobile doesn't work
    mariusjopenM mariusjopen

    Dear @hgbnd
    no news yet. But it is on our list.

    Best!

    Marius

    Addons

  • Hover on simple Images
    mariusjopenM mariusjopen

    Dear @Organstudio

    that should work:

    .img a img{
    transition: all 300ms ease;
    }
    
    .img:hover a img{
    filter: brightness(0.9);
    }
    
    .img a .caption{
    opacity: 0;
    transition: opacity 300ms ease;
    }
    
    .img:hover a .caption{
    opacity: 1;
    }
    
    

    Let me know!

    Marius

    General Discussion

  • Background colour change on rollover
    mariusjopenM mariusjopen

    Perfect! Happy to hear!

    General Discussion

  • Background colour change on rollover
    mariusjopenM mariusjopen

    Dear @Toby

    this works:

    .red {
        background: red !important;
    }
    
    .blue {
        background: blue !important;
    }
    
    <script>
    window.laytheme.on("newpage", function(layoutObj, type, obj){
        
        jQuery(document).on("mouseenter", ".thumb", function(event) {
        
            var category = jQuery(this).attr("data-catid");
        
            if (category == 1) {
                jQuery("body").addClass("red");
            }
        
            if (category == 2) {
        	    jQuery("body").addClass("blue");
            }
        });
        
        jQuery(document).on("mouseleave", ".thumb", function(event) {
            jQuery("body").removeClass("red");
            jQuery("body").removeClass("blue");
        });
    
    });
    </script>
    

    All the best!

    Marius

    General Discussion

  • Background colour change on rollover
    mariusjopenM mariusjopen

    Dear Toby,

    may I ask you to post the code in the this formatto this thread. And also make it as readable as possible for me. Breaks etc.
    Otherwise I need to do a surgery which costs a lot of time.

    Thank you

    Marius

    General Discussion

  • Background colour change on rollover
    mariusjopenM mariusjopen

    Dear @Toby

    this is the way to go:

    The code you just posted is already a step backward.

    Please try this code and let me know where the problem is.

    All the best!

    Marius

    @mariusjopen said in Background colour change on rollover:

    Hi @Toby

    add this to your CUSTOM HEAD CONTENT:

    <script>
    window.laytheme.on("newpage", function(layoutObj, type, obj){
    
    jQuery(document).on("hover", ".thumb", 
      function(event) {
      
      	jQuery("body").removeClass("red");
        jQuery("body").removeClass("blue");
        
        var category = jQuery(this).attr("data-catid");
        
        if (category == 1) {
          jQuery("body").addClass("red");
    	  }
        
        if (category == 2) {
       		jQuery("body").addClass("blue");
    	  }
        
      }
      
    );
    
    });
    </script>
    

    and this to your custom CSS:

    .red {
      background: red !important;
    }
    
    .blue {
      background: blue !important;
    }
    

    I have two projects with two different categories.
    If you inspect the thumbnails they are called 1 and 2:

    0_1522429869369_Bildschirmfoto 2018-03-30 um 19.10.52.png

    I placed the images as project thumbnails:
    0_1522429906502_Bildschirmfoto 2018-03-30 um 19.11.26.png

    You will probably need to adjust the code.
    But this is the base and you can go on from there.

    Good luck!

    Marius

    General Discussion

  • Background colour change on rollover
    mariusjopenM mariusjopen

    Hi @Toby

    as far as I understood – you wanted that the background is changing to a specific color when you hover a category, right?

    This is not happening in your example.

    Are we talking about the same thing?

    All the best!

    Marius

    General Discussion
  • Login

  • Don't have an account? Register

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