MyBB Community Forums

Full Version: How to change font style in template editing ???
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Trying to set font style for adding of text in templates 'header' file, and would like to set text style as 'Comic Sans'.

Code for how to set style without editing 'global.css' file ?

And/or, for the option/s, code for edit global.css and use in templates header edit ?

Have tried browsing for help (like at http://www.w3.org/) but not much help that am able to understand for direct application in MyBB template editing.

Thanks much !
You might create some class like:

.headfont {
color: #000000;
font-style: Sans Serif;
}

and use this class right from the header starts,something like this:

<div class="headfont">ALL HEADER CONTENT GOES HERE</div>

You gotta put </div> to the very end,but am not sure such thing would work,never tried,though you may try.
(2011-04-11, 02:52 AM)crazy4cs Wrote: [ -> ]You might create some class like:
.headfont {color: #000000;
font-style: Sans Serif;}
and use this class right from the header starts,something like this:
<div class="headfont">ALL HEADER CONTENT GOES HERE</div
You gotta put </div> to the very end,but am not sure such thing would work,never tried,though you may try.

Thanks for the reply and info.
What exactly would be put in the edit_template/header file to create and use a new font style (not from global.css)...

.headfont {color: blue; font-style: "Comic Sans";}
<div class="headfont">HEADER TEXT</div> ?

That doesnt seem to work.
Remember, you are working with a 'beginner' here Smile
Use this;
<div style="font-family: Comic Sans; color: #000000;">YOUR_TEXT_GOES_HERE</div>
(2011-04-11, 07:08 AM)Yaldaram Wrote: [ -> ]Use this;
<div style="font-family: Comic Sans; color: #000000;">YOUR_TEXT_GOES_HERE</div>


Thanks much for the reply and direction !

Worked fine after a little browsing for additional tags to use for font size etc... good L-curve info.

Followup question if possible...

Am able to edit Board Settings/General Configuration/Board Name at the CP, but where should we find that text in a template file so we may edit for font size etc ?

And, in general, is there a way to determine where the different original forum text is kept in the template files, for editing fonts etc ?

Would be nice to be able to find those edits, so do dont need to come on this forum every time Smile

Thanks again for your help !

Quote:Am able to edit Board Settings/General Configuration/Board Name at the CP, but where should we find that text in a template file so we may edit for font size etc ?

Its in between <title> tags in templates.

Quote:And, in general, is there a way to determine where the different original forum text is kept in the template files, for editing fonts etc

ACP > Themes > global.css
(2011-04-11, 05:38 PM)Yaldaram Wrote: [ -> ]
Quote:Am able to edit Board Settings/General Configuration/Board Name at the CP, but where should we find that text in a template file so we may edit for font size etc ?
Its in between <title> tags in templates.
Quote:And, in general, is there a way to determine where the different original forum text is kept in the template files, for editing fonts etc
ACP > Themes > global.css

Question was not very good, sorry about that, hopefully this clarifies...

IOW, where do we find the (template?) file that holds the 'board name' text (between 'title' tags) that we edited at the Board Settings/General Configuration/Board Name at the CP ?

Then, in general, how may we find other editable text (in template files?) to edit other board text, for example '<title>Hello There, Guest! (Login — Register)</title>' ?

Eg, is it possible to look at the forum in a 'source view' and determine where the text is held, and then go edit in server files ?

Thanks again for your patience with beginners !


Board Name is actually a setting found in ACP > Configurations > general Configurations >.

If you want to Change it and Use any other (along with the Board Name) the you'll need to edit several Templates.

Quote:Then, in general, how may we find other editable text (in template files?) to edit other board text, for example '<title>Hello There, Guest! (Login — Register)</title>' ?

Its in Header Templates > header_welcomeblock_guest template.
(2011-04-11, 06:22 PM)Yaldaram Wrote: [ -> ]Board Name is actually a setting found in ACP > Configurations > general Configurations >.
If you want to Change it and Use any other (along with the Board Name) the you'll need to edit several Templates.
Quote:Then, in general, how may we find other editable text (in template files?) to edit other board text, for example '<title>Hello There, Guest! (Login — Register)</title>' ?
Its in Header Templates > header_welcomeblock_guest template.
Really appreciate the followup !

Sounds like what we need is good server file search engine to look for 'contents' of (template,etc) files ?

For example, tried 'FileZillo' search for 'Guest' (from <title>Hello There, Guest! (Login — Register)</title>), in /forum/ -subdirectory/s-, but came up with nothing.

Shouldnt the word <title>...Guest!...</title> be in a our MyBB /forum/-subdirectory/s-/-file- somewhere ?

Also, understand "Board Name is actually a setting found in ACP > Configurations > general Configurations >", but where, in what server file, could we find the actual <title>-text-</title> we entered in the respective ACP text box interface ?



I think you're confusing yourself, you're confusing me anyhow.

Templates aren't files, templates are templates and they're stored in the database.
Pages: 1 2