• Resolved charmainenyw

    (@charmainenyw)


    Hi! I was just going to use Apex temporarily but ended up falling in love with it!

    I have a few questions:

    1. I want to make all the fonts on my site consistent, but I can’t change the font of links (in the menu and sidebars). How do I do that?

    2. Is it possible to reduce/resize the overall width of the content area, menus and sidebar on the web (I don’t mind mobile etc)? I want to make everything narrower overall, have more white space at the sides. Something like the Publish theme: https://www.ads-software.com/themes/publish/

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for choosing Apex!

    You can use this CSS to make the whole site narrower:

    .max-width {
      max-width: 900px;
    }

    Please copy and paste the above code into the “Custom CSS” section in the Customizer (Appearance > Customize). Once added there, it should take affect right away.

    You can further reduce the “900px” value to make the site even narrower.

    As for the fonts, are you currently using CSS to change the font on the site? I would recommend using an a selector to target the links, or perhaps add an !important tag to force your CSS to take effect, like this:

    a {
      font-family: font !important;
    }
    Thread Starter charmainenyw

    (@charmainenyw)

    Hi Ben,

    Thank you so much! Fixed the problem and I also found out I forgot to close a tag on my previous CSS that prevent all further changes!

    Thread Starter charmainenyw

    (@charmainenyw)

    Sorry – three more questions:

    1. How can I change the font of the post publish date?

    2. How can I change the widget/sidebar text size?

    3. How can I change the link formats and text size? eg. visited, hover, etc

    Thanks!

    Thread Starter charmainenyw

    (@charmainenyw)

    Oh and one more – haha

    4. How can I change the font of “continue reading…”?

    Theme Author Ben Sibley

    (@bensibley)

    Sure thing!

    Try using this CSS to declare the font across the entire site:

    body {
      font-family: font !important;
    }

    This will affect the whole site, so only the above CSS statement will need to be used to set the font.

    As for the text sizes, this code can be used to change the sidebar text:

    .widget > * {
      font-size: 16px;
    }

    That will increase the size for all text in the sidebar to 16px (currently 12px). And lastly, here is the CSS you can use to change the size of links:

    a {
      font-size: 16px;
    }

    If you want links to stay the same size then the other link states aren’t needed. However, if you’d like to make changes based on the state, that could be done like this:

    a,
    a:link {
      color: blue;
    }
    a:visited {
      color: purple;
    }
    a:hover,
    a:active,
    a:focus {
      color: red;
    }

    As an example, the above code will make links blue by default, purple if they’ve been visited, and red if the visitor hovers over them.

    Thread Starter charmainenyw

    (@charmainenyw)

    Thanks, Ben!

    But, what if I want the sidebar widget titles to be a different size from the sidebar widget text?

    And what if I want the post title links to be a different size from the sidebar links?

    As the CSS you gave me currently modifies the overall sizes and link styles. Thanks!

    Theme Author Ben Sibley

    (@bensibley)

    Okay I see.

    This will target the widget titles specifically:

    .widget-title {
      font-size: 16px !important;
    }

    Here is how you can change the post title size:

    .post-title {
      font-size: 16px !important;
    }

    And here is how you can target only links in the sidebar:

    .sidebar-primary a {
      font-size: 16px !important;
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing font of links and reducing width of content area’ is closed to new replies.