Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #934474

    Hello team,

    I want to adjust the font sizes for the whole site on small screens. Is there a CSS code for do that?

    Now I have set this CSS code in my style.css in my child theme but it does not work.

    @media only screen and (max-width: 767px) {
    h2 {
    font-size: 20px;
    }
    h3 {
    font-size: 18px;
    }
    body {
    font-size: 17px;
    }}

    #934476

    Also this does not work

    @media only screen and (max-width: 767px) {
    h2 {
    font-size: 20px !important;
    }
    h3 {
    font-size: 18px !important;
    }
    body {
    font-size: 17px !important;
    }}

    #934481

    Hi,

    Try adding your styles to quick css via Enfold Options instead.

    Best regards,
    Jordan Shannon

    #934562

    Hi Jordan,

    Thanks. That does the trick! But why doe this only work in quick css in theme options?

    Where can I use the style.css in my child theme for?

    Cheers Mike

    #934581

    Text size of the blog element for the page is not 17px on small screens. All other text is going well so far :)

    #934585

    Hi,

    The style.css stylesheet is only in the theme folder for WordPress to recognize basic theme data like the name and version of the theme. Therefore CSS rules in this file are not be used by the theme which is why the CSS code you put in the style.css file for the child theme does not work. Instead the custom.css file that is located in your themes /css/ folder is used to add your styles.

    Best regards,
    Jordan Shannon

    #934729

    Hi Jordan,

    All is oke for now. But the blog element for pages have tair own font size? I have set the default content font size for the whole site on 19px but the font size of the blog element is on 22px I think? How can i change that to 19px and 17px for small screens?

    If I use a sidebar the font size of the blog element is good (19 and 17px) and align left, but if I use no sidebar the font size is larger and align for the titel, picture and category is center.

    I have delete my custum CSS so it’s standard out of the box from Enfold.

    Cheers Mike

    #935129

    Hi Mike,

    Could you please give us a link to your website, we need more context to be able to help you.
    These rules are broad and so sometimes you need more specific selectors to apply to the elements that you need.

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.