Posts: 434
Threads: 130
Joined: Mar 2011
Reputation:
0
2011-04-11, 12:52 AM
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 !
Posts: 4,385
Threads: 162
Joined: Jul 2010
Reputation:
138
2011-04-11, 02:52 AM
This user has been denied support.
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.
Posts: 434
Threads: 130
Joined: Mar 2011
Reputation:
0
2011-04-11, 03:31 AM
(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
Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
2011-04-11, 07:08 AM
(This post was last modified: 2011-04-11, 08:23 AM by Yaldaram.)
Use this;
<div style="font-family: Comic Sans; color: #000000;">YOUR_TEXT_GOES_HERE</div>
Posts: 434
Threads: 130
Joined: Mar 2011
Reputation:
0
2011-04-11, 05:32 PM
(This post was last modified: 2011-04-11, 05:34 PM by akm.)
(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
Thanks again for your help !
Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
2011-04-11, 05:38 PM
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
Posts: 434
Threads: 130
Joined: Mar 2011
Reputation:
0
2011-04-11, 06:08 PM
(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 !
Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
2011-04-11, 06:22 PM
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.
Posts: 434
Threads: 130
Joined: Mar 2011
Reputation:
0
2011-04-11, 07:18 PM
(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 ?
Posts: 5,866
Threads: 96
Joined: Nov 2009
Reputation:
311
2011-04-11, 07:37 PM
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.
|