-
AuthorPosts
-
hjalte1983 Friend
hjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
June 16, 2014 at 12:32 pm #198881Hi. I’m having a hard time trying to change the font on my website.
Both in the template and also in the Mijoshop theme.
I added the google font link into /components/com_mijoshop/opencart/catalog/view/theme/decor/stylesheet/stylesheet.css
and changed font-family: ‘Muli’Look like this.
<link href='http://fonts.googleapis.com/css?family=Muli' rel='stylesheet' type='text/css'>
.mijoshop_heading_h1 {
font-family: 'Muli',serif !important;
color: #333 !important;
font-size: 36px !important;
font-weight: 300 !important;
line-height: 1.1 !important;
margin-top: 0;
}This give me no changes.. i have the same issue with the decor template.
Can you somehow guide me what i’m doing wrong ?
I would also really like the change the mainmenu text color from white to black, cant seem to find the code? is it something i have to add to custom.css ?
Regards.
swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
June 16, 2014 at 3:38 pm #539073Add the google link into assets.xml in templates/ja_decor/etc/
Then you can adjust the font from the backend.
For the menรผ colour. You can add the following into custom.css
.navbar-nav > li > a {
- color: #ffffff
}
and replace #ffffff with your chosen colour.See if that helps!
1 user says Thank You to swissa for this useful post
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 16, 2014 at 3:45 pm #539075<em>@hjalte1983 432450 wrote:</em><blockquote>
I would also really like the change the mainmenu text color from white to black, cant seem to find the code? is it something i have to add to custom.css ?Regards.</blockquote>
Paste the following within your custom.css file . . .
#header_oc .links a {
color: #000
display: inline-block;
float: none;
font-size: 14px;
line-height: 1;
padding-left: 0;
}Your main nav menu text should now be black.
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
June 16, 2014 at 4:52 pm #539082This is my assets.xml
<stylesheets>
<file>fonts/font-awesome/css/font-awesome.min.css</file>
<file>http://fonts.googleapis.com/css?family=Muli':400,700,600,500,300</file>
</stylesheets>How should i enable it or ?
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
swissa Friendswissa
- Join date:
- November 2011
- Posts:
- 1955
- Downloads:
- 7
- Uploads:
- 277
- Thanks:
- 175
- Thanked:
- 717 times in 572 posts
June 16, 2014 at 6:37 pm #539104<em>@hjalte1983 432490 wrote:</em><blockquote>This is my assets.xml
<stylesheets>
<file>fonts/font-awesome/css/font-awesome.min.css</file>
<file>http://fonts.googleapis.com/css?family=Muli':400,700,600,500,300</file>
</stylesheets>How should i enable it or ?</blockquote>
please check your code there. you don’t need to use ‘ around Muli (you didn’t have one at the front anyway) ๐
<stylesheets>
<file>fonts/font-awesome/css/font-awesome.min.css</file>
<file>http://fonts.googleapis.com/css?family=Muli:400,700,600,500,300</file>
</stylesheets>Then you just call it in css
1 user says Thank You to swissa for this useful post
hjalte1983 Friendhjalte1983
- Join date:
- September 2012
- Posts:
- 328
- Downloads:
- 7
- Uploads:
- 105
- Thanks:
- 101
- Thanked:
- 9 times in 1 posts
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by hjalte1983 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum