[Support request] Center Page Title on mobile

Home Forums Support [Support request] Center Page Title on mobile

Home Forums Support Center Page Title on mobile

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1671409
    Rostyslav

    Hello!

    I used this code to ilign the page title but it just works in desktop view:

    
    .page .entry-header {
          text-align: center;
    }

    How can I fix it for tablet and mobile?

    Thanks!

    #1671462
    Elvin
    Staff
    Customer Support

    Hi there,

    You have this CSS on your site:

    @media (min-width: 768px){
    .page .entry-header {
        text-align: center;
    }
    }

    The @media rule is wrong if you want it to apply on mobile. If you want it to apply on all viewports, just remove the @media rule.

    A wise man once said:
    "Have you cleared your cache?"

    #1671822
    Rostyslav

    I use this code:

    @media (min-width: 768px) {
    .sticky-bottom {
    display: none;
    	}
    }
    .page .entry-header {
          text-align: center;
    	}

    Is that correct now?

    #1671915
    David
    Staff
    Customer Support

    Hi there,

    if you want to center the title on mobile only you would use this CSS:

    @media (max-width: 768px) {
      .page .entry-header {
        text-align: center;
      }
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.