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

monospace

@monospace
About
Posts
13
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Major Issue with theme update from v9.5.5 to v9.5.6: missing files in package
    M monospace

    Anyways. Shit happens. Didn’t want to be in your skin yesterday ;)
    Glad you’ve reacted quickly though.

    Just a wish from my side: Please keep people informed if such a major issue happened. You have the licensees email addresses also for that reason.

    The time you’ve discovered a major break happened and as well when it's been fixed, including a guide on how to restore functionality.

    Bug Reports

  • Major Issue with theme update from v9.5.5 to v9.5.6: missing files in package
    M monospace

    Long story short, a client website basically crashed because the auto-update to v9.5.6 installed a faulty theme package which is missing crucial files such as the style.css or other functional php files.

    I assume this issue is not unknown to the developer team.

    I didn’t read anything about this in the (outdated!) change log on the website (https://laytheme.com/version-history.html).

    In terms of vulnerability concerns I kindly ask to give full transparency regarding this issue.
    Did someone just sleep and publish a wrong release or is this a security issue which needs further attention?

    LOG
    ---
    [15:17:11] Start comparing "/Lay Theme Versions/lay 9.5.5" ↔ "/Lay Theme Versions/lay 9.5.6"
    [15:17:11] Scanning "/Lay Theme Versions/lay 9.5.5"
    [15:17:11] Found 763 entries
    [15:17:11] Scanning "/Lay Theme Versions/lay 9.5.6"
    [15:17:11] Found 628 entries
    [15:17:11] Creating stats for diff result
    [15:17:11] Compared 1391 entries
    
    SETTINGS
    ---
    Abort on Error: true
    Excludes: "**/.DS_Store", "**/.git", "**/.hg", "**/.svn", "**/CVS", "**/node_modules"
    Ignore Contents: false
    Ignore End of Line: true
    Ignore Byte Order Mark: true
    Ignore Leading/Trailing Whitespace: false
    Max File Size: 0
    Use Case Sensitive: false
    
    
    
    INFO
    ---
    Compared:    "/Lay Theme Versions/lay 9.5.5" ↔ "/Users/admin/Downloads/Lay Theme Versions/lay 9.5.6"
    Entries:     1391 (1124 files, 267 folders)
    Size:        18.84 MB (19753611 Bytes)
    
    Left Path:   "/Lay Theme Versions/lay 9.5.5"
    Entries:     763 (615 files, 148 folders)
    Size:        9.84 MB (10322053 Bytes)
    
    Right Path:  "/Lay Theme Versions/lay 9.5.6"
    Entries:     628 (509 files, 119 folders)
    Size:        8.99 MB (9431558 Bytes)
    
    RESULT
    ---
    Comparisons: 763
    Diffs:       159
    Conflicts:   0
    Created:     0
    Deleted:     135 (106 files, 29 folders)
    Modified:    24 (48 files)
    Unchanged:   604 (970 files, 238 folders)
    Ignored:     0
    

    I fixed the client website by manually installing v9.5.5 and disabling auto-updates.

    Bug Reports

  • Using LayThumbnail class for next/prev project within project footer
    M monospace

    For everyone else, here is the code for the two shortcodes. Not the most elegant solution, but it does what it should do:

    <?php
    
    function lay_previous_post_thumbnail_shortcode() {
        global $post;
        
    
        $prev_post = get_previous_post(false); // Remove category restriction
        if ($prev_post && $prev_post->ID === $post->ID) {
            $prev_post = null; // Reset if it's the same as the current post
        }
    
        if (!$prev_post) {
            // No previous post found, get the first post
            $first_post = get_posts(array(
                'numberposts' => 1,
                'order' => 'DESC',
                'orderby' => 'date',
                'post_status' => 'publish'
            ));
            if (empty($first_post)) {
                return 'No posts available.'; // Display message when no posts found
            }
            $prev_post = $first_post[0];
        }
    
        $prev_post_id = $prev_post->ID;
        $thumbnail_id = get_post_thumbnail_id($prev_post_id);
    
        $thumbnail = wp_get_attachment_image_src($thumbnail_id, 'full');
    
        $project_description = get_post_meta($prev_post_id, 'lay_project_description', true);
    
        $markup = '<a class="layprevproject thumb" style="" href="#layprevproject">';
        $markup .= '<div class="thumb-rel">';
        $padding_bottom = ($thumbnail[1] != 0) ? ($thumbnail[2]/$thumbnail[1]*100) : 0;
        $markup .= '<div class="ph" style="padding-bottom: ' . $padding_bottom . '%; ">';
        $markup .= '<img src="' . esc_url($thumbnail[0]) . '" style="position: absolute;top: 0;left: 0;width: 100%;height: auto;" alt="Previous Post Thumbnail">';
        $markup .= '</div>';
        $markup .= '</div>';
        $markup .= '<div class="lay-textformat-parent below-image"><span class="descr">';
        $markup .= $project_description;
        $markup .= '</span></div>';
        $markup .= '</a>';
    
        return $markup;
    }
    
    add_shortcode('lay_previous_post_thumbnail', 'lay_previous_post_thumbnail_shortcode');
    
    function lay_next_post_thumbnail_shortcode() {
        global $post;
        
    
        $next_post = get_next_post(false); // Remove category restriction
        if ($next_post && $next_post->ID === $post->ID) {
            $next_post = null; // Reset if it's the same as the current post
        }
    
        if (!$next_post) {
            // No next post found, get the last post
            $last_post = get_posts(array(
                'numberposts' => 1,
                'order' => 'ASC',
                'orderby' => 'date',
                'post_status' => 'publish'
            ));
            if (empty($last_post)) {
                return 'No posts available.'; // Display message when no posts found
            }
            $next_post = $last_post[0];
        }
    
        $next_post_id = $next_post->ID;
        $thumbnail_id = get_post_thumbnail_id($next_post_id);
    
        $thumbnail = wp_get_attachment_image_src($thumbnail_id, 'full');
    
        $project_description = get_post_meta($next_post_id, 'lay_project_description', true);
    
        $markup = '<a class="laynextproject thumb" style="" href="#laynextproject">';
        $markup .= '<div class="thumb-rel">';
        $padding_bottom = ($thumbnail[1] != 0) ? ($thumbnail[2]/$thumbnail[1]*100) : 0;
        $markup .= '<div class="ph" style="padding-bottom: ' . $padding_bottom . '%; ">';
        $markup .= '<img src="' . esc_url($thumbnail[0]) . '" style="position: absolute;top: 0;left: 0;width: 100%;height: auto;" alt="Next Post Thumbnail">';
        $markup .= '</div>';
        $markup .= '</div>';
        $markup .= '<div class="lay-textformat-parent below-image"><span class="descr">';
        $markup .= $project_description;
        $markup .= '</span></div>';
        $markup .= '</a>';
    
        return $markup;
    }
    
    add_shortcode('lay_next_post_thumbnail', 'lay_next_post_thumbnail_shortcode');
    
    General Discussion

  • Using LayThumbnail class for next/prev project within project footer
    M monospace

    Hi there,

    I was wondering if anyone has experience with using LayThumbnail class to display next/prev project thumbnails automatically at the end of a project using the globally defined (via Customizing ▸ Project Thumbnails) thumbnail settings.

    I want to create a shortcode for next and one for prev, placed in the project footer.

    Thanks!

    General Discussion

  • Cover Region Scrolling Down: Darken OR Lighten + Workaround?
    M monospace

    Dear @mariusjopen

    It’s been a time, but I want to get back because I am facing this issue again.
    I think you misunderstood me here. I wanted to request a feature with the post. :)

    In the admin panel under the menu item "Lay Options" → "Cover Options" is the setting "Darken Cover when scrolling down".

    This option darkens the cover region from 1 to 0 via the CSS filter brightness in realtion to the scrolling depth.

    My suggestion was to add another option to the "Darken Cover when scrolling down" option alternatively or in addition. For example "Change opacity instead of darken the cover region".
    The only difference is that now instead of "filter: brightness(var)" "opacity: var" is changed inline.

    This would extend the possibilities you get with the cover option:
    For example, instead of darkening everything, you could hide the background image of the cover by the opacity loss. Or a color could become visible. etc.

    I don't know if you are open to suggestions for improvement... If so, I hope this is something other users are also looking for.

    Thank you! Best

    General Discussion

  • Cover Region Scrolling Down: Darken OR Lighten + Workaround?
    M monospace

    (can't edit the initial post)

    Or even better: Another option to change the opacity. So it turns to the body background-color.

    This is pretty nice when the rows have a transparent background.

    General Discussion

  • Cover Region Scrolling Down: Darken OR Lighten + Workaround?
    M monospace

    Hi Lay Community!

    As I am working on a design which is using high key images as main visuals the entire appearance is very light and clear.

    Therefore I would like to change the "Darken Cover when scrolling down" option to a "Lighten Cover when scrolling down".

    @mariusjopen @arminunruh I therefore would like to make a suggestion to rather changing the option to "Change Brightness when scrolling down" with a brightness (%) control compared to the one from the project thumbnail hover customizer section.

    What do you think about it?
    And: Is there a workaround which is quickly applied?

    Thanks,

    C

    General Discussion

  • Desktop Version is not working
    M monospace

    Hey @mariusjopen

    thanks for the input. I duplicated the page and deleted the duplicate. The faulty page could restored to have a further look.

    Adding an empty row and saving the original afterwards solved the problem for that page.

    Thanks.

    General Discussion

  • Desktop Version is not working
    M monospace

    @mariusjopen

    Thanks for the response. Thats exactly the current setting. I did send you an email with the necessary information. Thank you!

    General Discussion

  • Desktop Version is not working
    M monospace

    Hi again.

    Unfortunately the bug appeared again.

    This time another page is affected, which wasn't before. Please have a look at:
    http://2017.mono-space.com/jobs

    0_1523188700497_Bildschirmfoto 2018-04-08 um 13.57.58.png

    I will leave the page untouched so you might figure out whats wrong.

    Best,

    Christoph

    General Discussion

  • Desktop Version is not working
    M monospace

    Hi!

    Unfortunately the desktop version of our website is not running. There is a strange error in the console.

    Have a look: 2017.mono-space.com

    It appeared after saving the permalinks settings page - pretty links are applied.

    One more thing which might help identifying the error:
    Before the whole website broke, the projects category archive page had ‘category’ inside of the url right before the actual category slug.

    Besides that some pages are running regularly. Also single projects are displayed correctly.

    Thanks for your help. Much appreciated.


    Edit: I was able to restore the functionality by saving the affected pages after a simple change like adding an empty row.

    But still the having 'category' in the slug, which wasn't there before.

    General Discussion

  • Why no hierarchical taxonomies (categories)?
    M monospace

    I am just questioning why the categories aren't hierarchical, as the category taxonomy usually is by default.

    Did the setting cause any trouble? I would like to activate it in a child-theme, so I can output categories automatically with a shortcode as a list inside a project.

    I would like to create a child theme and comment the include of "/assets/plugins/radio-buttons-for-taxonomies/radio-buttons-for-taxonomies.php"
    in the functions.php

    Seems to work, though ... Anyone tried that before?

    Thanks!

    General Discussion
  • Login

  • Don't have an account? Register

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