mariusjopen
Posts
-
Z index fixed elementOct 25, 2019, 5:46 PM -
rotate text about 90 degreesMay 23, 2017, 8:56 AMHi 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
-
Dark mode β is it possible?Nov 6, 2019, 9:30 AMDear @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
-
Project filtering / Isotope filteringSep 30, 2019, 8:05 AM -
Html5 Video - Full Screen Aspect RatioNov 19, 2018, 11:00 AMDear @sebastianpetrov
ok, I can see what you mean.
Try to add this into your CUSTOM CSS code:
.html5video video { object-fit: contain; }
Berst!
Marius
-
How can I hide the active menu link from the menu on mobile?Sep 24, 2018, 3:10 PMDear @piero101
have a look here:.mobile-nav .current-menu-item { display: none !important; }
Best!
Marius
-
Categorize projects without adding them manuallySep 8, 2018, 5:15 PMDear @flob13
we agree. A filter would be good.We have it written down for future improvements.
Best!
Marius
-
px instead of %May 25, 2018, 7:23 AM -
masonry gridJul 28, 2017, 8:38 AMHi Plateau!
Still developing the new version of LayTheme.We have many things and features to implement :-)
Best!
Marius
-
We need better customization for mobile menus -
Zoom in cover image, if aspect ratio doesn't fit imageJun 12, 2019, 8:52 AMDear @neunzehnachtneun
happy it works!
Best!Marius
-
RSS FeedJan 30, 2019, 2:08 PMDear @edgrbnz
we will have a look if this is possible to be implemented in a short time.Thank you for the tip!
Best!
Marius
-
Custom CSS menu option for more than 1 subpage menuOct 21, 2019, 1:48 PM -
Lightbox Mobile doesn't workDec 3, 2018, 9:08 AM -
Hover on simple ImagesJun 2, 2018, 1:29 PMDear @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
-
Background colour change on rolloverApr 18, 2018, 10:16 AMPerfect! Happy to hear!
-
Background colour change on rolloverApr 16, 2018, 11:30 AMDear @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
-
Background colour change on rolloverApr 12, 2018, 10:39 AMDear Toby,
may I ask you to post the code in the
this format
to 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
-
Background colour change on rolloverApr 10, 2018, 12:00 PMDear @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:I placed the images as project thumbnails:
You will probably need to adjust the code.
But this is the base and you can go on from there.Good luck!
Marius
-
Background colour change on rolloverApr 8, 2018, 2:36 PMHi @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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options β Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it