This topic has 4 replies, 2 voices, and was last updated 10 years by mckown.

  • Author
  • #14293
     mckown
    Participant

    I really like leaving the Display post meta left on for desktop users but it just takes up too much space on mobile .. any way to remove it from mobile only?

    #14331
     sharmstr
    Moderator

    You can remove them using media queries in kelo-child/style.css

    COPY CODE
    
    @media screen and (max-width: 480px) {
    .article-meta {
    display: none;
    }
    
    .article-media {
    margin-left: 0;
    }
    
    .article-content {
    margin-left: 0;
    }
    
    }
    

    I would like to keep the meta on my site, but also dont like the meta info taking up the entire left hand side on phones. So, what I plan on doing is something like this.

    COPY CODE
    
    @media screen and (max-width: 480px) {
    
    .article-media {
    clear: left;
    margin-left: 0;
    }
    
    .article-content {
    margin-left: 0;
    }
    
    }
    

    That will move the article-media below the meta and utilize the entire width of the screen for media and content.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #14339
     mckown
    Participant

    that removed the meta info but the content still does not go full width.

    #14341
     sharmstr
    Moderator

    Try this instead

    COPY CODE
    
    article .article-meta {
    display: none;
    }
    
    .article-media {
    margin-left: 0px !important;
    }
    
    .article-content {
    margin-left: 0px !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #14352
     mckown
    Participant

    that works perfect. thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Remove Display post meta’ is closed to new replies.

Log in with your credentials

Forgot your details?