Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main Title Non-Responsive #15

Open
dariogentiletti opened this issue Sep 29, 2020 · 6 comments
Open

Main Title Non-Responsive #15

dariogentiletti opened this issue Sep 29, 2020 · 6 comments

Comments

@dariogentiletti
Copy link

dariogentiletti commented Sep 29, 2020

First, thanks for the beautiful theme!
The main title seems to be non-responsive for mobile. How can it be fixed (Assuming I would like to keep the same length)?

image

@raghudotcc
Copy link
Owner

raghudotcc commented Sep 30, 2020

Hi Dario,

Thanks for the kind words. Really appreciate it.
May I know what is the width of the device? I have tested it on iPhone SE with up to 20 characters and it seemed to work fine, yours seems like a much longer string. We may have to reduce the size of the font or think of a different way to rearrange text in your case.

@dariogentiletti
Copy link
Author

It is an iPhone X. Would it be possible to reduce the size of the main title for mobile then? How would I do it?

@raghudotcc
Copy link
Owner

Sorry for the delayed response.

Yes, it is possible to change the font size of the main title for smaller screens. Here is how you can do it.

  1. Go to style.css and paste this line at the end of the file.
   @media screen and (max-width: 500px) {
      .siteheading h4 {
         font-size: 20px; 
      }
   }
  1. Try and change the value for the font-size attribute from 20px to as per your need.

@dariogentiletti
Copy link
Author

Hey Raghuveer, I added the snippet but it does not seem to affect in any way the mobile website. I tried to change the font size but it stays the same. Is it possible that other settings are being prioritized?

@raghudotcc
Copy link
Owner

Try site-heading instead of siteheading. That should work.

Note: I had not seen the classname earlier, it has a hyphen in it. You can check that by going to style.css and looking for site-heading.

@dariogentiletti
Copy link
Author

I added this at the bottom of style.css, but nothing changes:

@media screen and (max-width: 500px) {
  .site-heading h4 {
     font-size: 9px; 
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants