Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • hjalte1983 Friend
    #198881

    Hi. 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 Friend
    #539073

    Add 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 {

    }
    and replace #ffffff with your chosen colour.

    See if that helps!

    TomC Moderator
    #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 Friend
    #539082

    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 ?

    hjalte1983 Friend
    #539084

    @tomc I made a file in /templates/ja_decor/css/custom.css and pasted the code.. should the file be somewhere else ? doesn’t seem to work

    nevermind

    .navbar-nav > li > a {
    color: #000

    }
    did the trick

    swissa Friend
    #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

    hjalte1983 Friend
    #539105

    @swissa that actually did it.. but just some of the content..

    the mainmenu text is still raleway so is the modules text

    *update* finally somehow i got it to work ๐Ÿ™‚

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  hjalte1983 10 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum