Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: D.Rich99 - heinäkuu 23, 2019, 04:01:50 IP

Otsikko: How to change font size?
Kirjoitti: D.Rich99 - heinäkuu 23, 2019, 04:01:50 IP
How do I change the size of the default font that appears in posts?
Otsikko: Re: How to change font size?
Kirjoitti: Sir Osis of Liver - heinäkuu 23, 2019, 04:38:34 IP
index.css



/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
overflow: auto;
line-height: 1.4em;
padding: 0.1em 0;
font-size: 18px;
}


Otsikko: Re: How to change font size?
Kirjoitti: D.Rich99 - heinäkuu 23, 2019, 06:21:07 IP
Thank you, but I don't seem to have that in my index.css...


/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage {
    overflow: auto;
    line-height: 1.4em;
    padding: 0.1em 0;
}

I'm using a theme called "NightBreeze". where else might be controlling the font size?
Otsikko: Re: How to change font size?
Kirjoitti: Antechinus - heinäkuu 23, 2019, 06:28:08 IP
The usual thing with custom themes is that you ask in the theme topic, where the theme author will answer your question. ;)

It's usually better this way, because it's impossible for people to be on top of all the details of every theme ever made.
Otsikko: Re: How to change font size?
Kirjoitti: Sir Osis of Liver - heinäkuu 23, 2019, 06:46:01 IP
index.min.css



.post{margin-top:.5em;clear:right;padding:0 0 14px;font-size:18px}



Makes things simpler if there's an option to disable css minify, but don't see it in Nightbreeze.
Otsikko: Re: How to change font size?
Kirjoitti: D.Rich99 - heinäkuu 23, 2019, 07:29:36 IP
Lainaus käyttäjältä: Antechinus - heinäkuu 23, 2019, 06:28:08 IP
The usual thing with custom themes is that you ask in the theme topic, where the theme author will answer your question. ;)

It's usually better this way, because it's impossible for people to be on top of all the details of every theme ever made.
I asked in here because the theme author does not seem to be answering questions.
Otsikko: Re: How to change font size?
Kirjoitti: drewactual - heinäkuu 23, 2019, 10:56:53 IP
here is something of value for you that may server you well, Sir.

when in question of things like this, right click the page you want to change while viewing it and 'view source'.  find in the source code the text or item you want to work with (using search, i.e. cntrl+f, helps)... look at the structure of the code... discover what class is controlling it (example: div class="?", or span class="?", or perhaps p class, or maybe even class=" this  that" or class="??_what's here doesn't matter just the first part" and even ? class="??" and ? class="??" ) the item is in... copy it...

open your style sheet controlling your theme.  search for (paste it in)... there it is!  if it isn't there, use one of the other identified classes to find it.  change it, save it, refresh the page and admire your work.  if you don't admire it as much as you thought you would or it had unintended effects, well..... now you know how to find the controlling mechanism.  just hope it isn't hard coded in the php files... those are tougher. 
Otsikko: Re: How to change font size?
Kirjoitti: Sir Osis of Liver - heinäkuu 24, 2019, 10:59:47 IP
I used view source for long time, more recently been using inspect element.  Doesn't help much when the class isn't in the css.  You'd be surprised how often that happens. :P
Otsikko: Re: How to change font size?
Kirjoitti: D.Rich99 - heinäkuu 24, 2019, 11:24:14 IP
I appreciate the advice, but I'm still very new to this stuff and don't really understand.

I tried looking in index.min.css, as posted by Sir Osis of Liver, But that specific line does not seem to be there.

Sorry if I'm being a pain, but I still don't get it... ><
Otsikko: Re: How to change font size?
Kirjoitti: Sir Osis of Liver - heinäkuu 24, 2019, 11:57:00 IP
Look for this -



.post{margin-top:.5em;clear:right;padding:0 0 14px



Then add the font-size as posted above.
Otsikko: Re: How to change font size?
Kirjoitti: D.Rich99 - heinäkuu 25, 2019, 11:32:09 IP
Thank you so much! It worked!  ;D

I really appreciate your help!  8)