Posts: 166
Threads: 37
Joined: May 2012
Reputation:
0
2016-07-18, 01:42 PM
(This post was last modified: 2016-07-18, 01:43 PM by feeling_bored.)
Hello
its possible to change the font style for a theme ,
for example , if i want to use the font used in NETPEN theme to any other theme (like defult or any other)
thanks for your answers
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2016-07-18, 02:07 PM
font styles are defined in global.css for the most part. The body tag and container tag sets the main style of the theme.
body {
background: #fff;
color: #333;
text-align: center;
line-height: 1.4;
margin: 0;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 13px;
overflow-y: scroll;
}
#container {
color: #333;
text-align: left;
line-height: 1.4;
margin: 0;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 13px;
min-width: 990px;
}
What goes around comes around
Posts: 166
Threads: 37
Joined: May 2012
Reputation:
0
2016-07-18, 02:12 PM
do you mean i have to change the font style just for body { and #container {?
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2016-07-18, 02:15 PM
That is the main area that needs to be changed. There may be other instances, depending on the themes.
What goes around comes around
Posts: 166
Threads: 37
Joined: May 2012
Reputation:
0
2016-07-18, 02:16 PM
i want to make all the forum font-family: 'Exo 2', sans-serif;
so i should change all the global cc font family ?
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2016-07-18, 02:23 PM
Yes. If you want to use that font, then you have to check the headerinclude template as well. There will be a link something like this:
<link href='https://fonts.googleapis.com/css?family=Exo+2' rel='stylesheet' type='text/css'>
You need to copy that over into the headerinclude of the theme where you want to use the font.
What goes around comes around
Posts: 166
Threads: 37
Joined: May 2012
Reputation:
0
2016-07-18, 03:52 PM
(This post was last modified: 2016-07-18, 03:55 PM by feeling_bored.)
thanks sir ,
its working now ...
thanks again one more time for effort
best regards
Sir , i have another question
its possible to move the plugin (aclear news bar) under the navigation zone
because its inside the navigation,but i want it under the navigation zone
thanks sir
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2016-07-18, 05:34 PM
I installed this quickly, and it already sits below the breadcrumb navigation. In the plugin file you can see the following also, which places it under the navigation:
$page=preg_replace('#<div class="navigation">(.*)</div>#Usi','<div class="navigation">$1</div><br />
<table border="0" cellspacing="'.$theme["borderwidth"].'" cellpadding="'.$theme["tablespace"].'" class="tborder">
<thead>
<tr>
<td class="thead" width="100" align="center"><strong>Latest '.
/* Use below code and set ^^(width) higher if you want board name to be said:
$mybb->settings['bbname']
*/
'news: </strong></td><td class="thead"><strong><marquee direction="left" scrollamount="5">'.$news.'</marquee></strong></td>
</tr>
</thead>
</table>',$page);
What goes around comes around
Posts: 166
Threads: 37
Joined: May 2012
Reputation:
0
2016-07-18, 06:13 PM
(2016-07-18, 05:34 PM)Ashley1 Wrote: I installed this quickly, and it already sits below the breadcrumb navigation. In the plugin file you can see the following also, which places it under the navigation:
$page=preg_replace('#<div class="navigation">(.*)</div>#Usi','<div class="navigation">$1</div><br />
<table border="0" cellspacing="'.$theme["borderwidth"].'" cellpadding="'.$theme["tablespace"].'" class="tborder">
<thead>
<tr>
<td class="thead" width="100" align="center"><strong>Latest '.
/* Use below code and set ^^(width) higher if you want board name to be said:
$mybb->settings['bbname']
*/
'news: </strong></td><td class="thead"><strong><marquee direction="left" scrollamount="5">'.$news.'</marquee></strong></td>
</tr>
</thead>
</table>',$page);
maybe its under the navigation in the defult theme . but i used project theme (by Iandrew) and its inside the navigation as you see ,
thanks for your suggess
regards
Posts: 2,136
Threads: 103
Joined: Oct 2015
Reputation:
225
2016-07-18, 06:37 PM
You need to convert the plugin to fit your theme. What does that theme have in the nav template?
What goes around comes around
|