Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1360039
    nedalpert
    Participant

    Hello:

    I am trying to reduce the font-size on my iPhone settings, as the site title extends past the device borders.

    I was able (a separate matter) to make some child theme CSS adjustments to this tag (.x-brand), changing the color and referring to a custom font like so:

    .x-brand {
    font-family: ‘Herculanum’, sans-serif;
    color: #999999;
    }

    /* Media Queries */
    @media only screen
    and (min-device-width: 375px)
    and (max-device-width: 667px)
    and (orientation: portrait) {
    .x-brand {font-size: 24px !important;}
    }

    The Media Query above is just not working, and I have tweaked the dimensions and also the tag (tried .x-brand text with no success) — can you see what I am doing wrong?

    Thanks, Ned

    #1360065
    Rahul
    Moderator

    Hi There,

    Greetings!
    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1360089
    nedalpert
    Participant
    #1360193
    Joao
    Moderator

    Hi There,

    Please try :

    @media only screen
    and (min-device-width: 375px)
    and (max-device-width: 667px)
    and (orientation: portrait) {
    .x-brand.text	{font-size: 24px !important;}
    }

    Hope it helps

    Joao

    #1360251
    nedalpert
    Participant

    Hi Joao:

    Tried both .x-brand text and .x-brand.text but neither were successful. Thanks for your suggestion!

    Regards, Ned

    #1360319
    nedalpert
    Participant

    I thought this might work, but did not…

    I deleted the font-size setting under Logo Text in the Customizer “Header”, and added it in via CSS. Again in desktop mode it looked OK, but I still could not change for the iPhone in the @Media setting. 🙁

    Rgds, Ned

    #1360320
    Nico
    Moderator

    Hi There,

    In this case, to further check your setup why it is not working. Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1360348
    nedalpert
    Participant
    This reply has been marked as private.
    #1360734
    Christopher
    Moderator

    Hi there,

    Please update your code to :

    /* Media Queries */
    @media only screen and (max-width: 767px) and (orientation: portrait) {
      
    a.x-brand.text	{
      font-size: 30px !important;
        } 
    }

    Hope it helps.

    #1361396
    nedalpert
    Participant

    Thank you — works beautifully.

    Great support!!

    #1361476
    Joao
    Moderator

    Glad to hear it 🙂

  • <script> jQuery(function($){ $("#no-reply-1360039 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>