[SOLVED] Main website title

Post Reply
Ole
Posts: 1
Joined: Mon Apr 03, 2017 7:31 am

[SOLVED] Main website title

Post by Ole »

Can anybody tell me where I can edit the font size and color for the main website title? I can't seem to find it in the CSS nor anywhere else.
User avatar
wiz
Admin
Posts: 569
Joined: Sat Oct 30, 2010 12:23 am

Re: Main website title

Post by wiz »

Hello Ole and welcome to the WonderCMS community.

You can define the font size by adding the h1 font size to your style.css

Code: Select all

h1 {
     font-size: 24px;
}
The reason you couldn't find the style is because the default h1 font size was pulled from bootstrap CSS, which is not included in WonderCMS but pulled from a CDN (Content Delivery Network), so it loads faster because all users have cached the same CSS file. By using the CSS code above in your theme style.css, you will be able to rewrite the font size.

Quick tutorial: in cases like this, the easiest way to find where the style is coming from is to:
- on your page, right click the Website Title
- click inspect element (in Chrome and Firefox, not sure about edge)
- on the bottom right side, you will see the defined font size and which CSS file it's coming from

Moving this thread to 2.x.x support and marking as solved.
Post Reply