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

F

felix_rabe

@felix_rabe
About
Posts
223
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • advice for captions between desktop and mobile
    F felix_rabe

    @alasdair17 This is a great idea to handle lightbox captions on mobile. maybe @arminunruh has already integrated an feature like "show caption beneath image on mobile" when the lightbox is turned off on mobile?

    Another way would be to get into lightbox settings and set "Image File Caption" as the Default Caption for the Lightbox. You can then give your Image in the Media Section a Description that will be used as Lightbox caption. The following code that goes into Custom CSS/HTML in the Head section will do the rest.

    <script>
    function addCaptionsForMobile() {
        // Check if the HTML tag has the class "phone-size"
        if (jQuery("html").hasClass("phone-size")) {
            // Select all divs with the class 'img' that have a data-lightbox-caption attribute
            jQuery(".img[data-lightbox-caption]").each(function() {
                var $div = jQuery(this);
                var captionHTML = $div.attr("data-lightbox-caption");
                
                if (captionHTML) {
                    // Check if the caption is already appended to avoid duplication
                    if ($div.find(".custom-caption").length === 0) {
                        // Create a new element for the caption and add it to the div
                        var $caption = jQuery('<div class="custom-caption"></div>').html(captionHTML);
                        $div.append($caption);
                    }
                }
            });
        } else {
            // Remove captions if switching to a non-mobile layout
            jQuery(".custom-caption").remove();
        }
    }
    
    // Run the function when a new page is shown
    window.laytheme.on("newpageshown", function() {
        addCaptionsForMobile();
    });
    
    // Add a resize listener to recheck the layout on window resize
    jQuery(window).on("resize", function() {
        addCaptionsForMobile();
    });
    </script>
    
    General Discussion

  • how to stretch Title and description text wider than the thumbnail image
    F felix_rabe

    maybe:

     .thumb .title{
     white-space: nowrap;
     transform: translateX(-50%);
     }
    

    Than can move the text to the left by 50 percent of its length. You can adjust this value.

    General Discussion

  • Scroll zoom transition
    F felix_rabe

    @PatFontebasso nice photos on your website! I think for this animation you would need a js script that scales the image according to the scroll-position.

    I made this here with the logo, but it gets smaller on scroll.
    https://sanmedicus.de

    you can use the website codepen.io to mess around and build sketches before implementing it to lay theme.

    General Discussion

  • Add Custom HTML, CSS and JS
    F felix_rabe

    @weodeo in your fiddle, you use symbols such as "$", that have to be translated to something else in lay theme. Would be useful if you post your code here.

    General Discussion

  • Carousel captions / fullscreen
    F felix_rabe

    "If you don't want a single element to transition, add the class "no-animation" to that Element. Right click the element in the Gridder, choose "Edit HTML class and id" and enter "no-animation"."

    Feedback

  • Carousel shows border on mobile
    F felix_rabe

    @Eeva try this in custom css:

     video {
         -webkit-mask-image: -webkit-radial-gradient(white, black);
         -webkit-backface-visibility: hidden;
         -moz-backface-visibility: hidden;
     }
    
    Bug Reports

  • STELLA CREATES
    F felix_rabe

    Thank you @ffinger. In general, you can explore such features by using the inspection mode of your browsers developer tools.

    In this case, it was made with Javascript in the Custom Head Content section of Laytheme: A klick on the Button changes the height of the text element.

    <script>
    window.laytheme.on("newpageshown", function(layoutObj, type, obj){
    jQuery(".infobutton").click(function () {
    jQuery(".textfield").css("height", "52%");
    });
    jQuery(".closebutton").click(function () {
    jQuery(".textfield").css("height", "0%");
    });});
    </script>

    Showcase

  • advice for captions between desktop and mobile
    F felix_rabe

    @alasdair17 it seems you can use <span class="my-class">Second Row</span> and add a custom css style for this class.

    For example:

    .my-class{
    font-size: .8rem;
    }
    
    General Discussion

  • burger/menu dynamic color adaptation
    F felix_rabe

    @mr-do this effect is called "mix-blend-mode" with the setting "difference" and a white color for the icon that you can apply with custom css.

    General Discussion

  • fixed sized square video
    F felix_rabe

    @emresenoglu try to use that for your custom video class:

    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100vh;
    aspect-ratio: 1;

    But you have to reflect if this is the best approach webdesign-wise, also considering mobile and tablet layouts.

    General Discussion

  • On scroll pages or divs flow to the the top or down
    F felix_rabe

    @j36g2 maybe these color-planes are very high, like three times the window height, and the text inside these planes has "position: sticky; top:0;" Then you have to fiddle with some custom css to align them one after each other.

    General Discussion

  • text content to be have fixed width after a certain size
    F felix_rabe

    @panteley try this:
    transform: translateX(-50%)!important;

    maybe this forces your style to be applied at page load.

    General Discussion

  • text content to be have fixed width after a certain size
    F felix_rabe

    @panteley

    Add this to your main-text-cover css:

    left: 50%!important;
    transform: translateX(-50%);

    General Discussion

  • remove carousel next buttons (on mobile)
    F felix_rabe

    @Brief put this in your custom css for mobile:

     .flickity-prev-next-button{
     display: none;
     }
    
    General Discussion

  • center all images in carousel
    F felix_rabe

    @linazangers have you checked in the lay options -> carousel add-on the settings for vertical alignment of slides?

    General Discussion

  • changing menu bar color on a specific page
    F felix_rabe

    try a !important after your color, like:
    color: #ffffff!important;

    or manipulate this, in the inspection you can see that this is where the actual color is declared:

    .sitetitle-txt-inner {
    color: #000000;
    }

    General Discussion

  • couple of questions
    F felix_rabe

    @pipaslol reagarding your first question:
    when making the element fixed you would also have to give him a "width", "left", "padding" etc. to make it look like you want, because by "fixed" it gets taken out and placed on top of all content.

    General Discussion

  • Do I need a cookie notice?
    F felix_rabe

    I would say you don't need a notice for cookies that are necessary to technically run the site. I would say that is the case here.

    Apart from that you need a Privacy Statement where you say that these cookies are set.

    That would be my approach, but without legal liability.

    Felix

    General Discussion

  • Breadcrumbs /// Quick Edit
    F felix_rabe

    @lortnok you might want check out woocommerce hooks.

    this goes into functions.php of your theme:
    add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20);

    this goes into your php file for the desired page:
    <?php woocommerce_breadcrumb(); ?>

    But I don't know if it works with lay theme this way. Maybe you set up a dummy website and fiddle with it.

    @arminunruh i suppose this could be integrated "easily", maybe you put it on your list :-)

    General Discussion
  • Login

  • Don't have an account? Register

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