Jump to content

Font family change


Recommended Posts

Can I change the installed fontawesome in default_bootstrap to another google font I have in mind?

 

I manage to change the blocktop font and need to apply the same font to the whole site to make it look more cohesive.

 

Is it possible to change in global.css or I need to edit each individual block manually? Either way please guide me how to achieve it.

Edited by kook kai (see edit history)
Link to comment
Share on other sites

Font awesome is icon font. Are you sure you want to change that?

default_bootstrap is using Open Sans font and if that is what you want to change you can do it in yourdomain\themes\default-bootstrap\header.tpl

//fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext

Change this to some other google font

But then you will have to change font family in all occurencies in css files

Link to comment
Share on other sites

Thank you dioniz for the reply.

 

I'd like to use Google Muli font. Also notice that when I change the font in blockcart, the cart icon is skewed. How to get around with this if I want to change font for the entire site? What about other icons, am I going to run into the trouble with all icons?

 

So if I change font in //fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext to be "//fonts.googleapis.com/css?family=Muli' rel='stylesheet' type='text/css'>, my entire site font will be changed to muli - the description, all blocks font ( except the currencies)?

Link to comment
Share on other sites

Where have you changed font in blockcart? What code?

You shouldn't run in trouble with icons if you change font.

 

 

Default theme is using Arial,​Helvetica,​sans-serif font for most of text and "Open Sans",​sans-serif for titles, headers ...

 

So if you change font to Muli, you will need to go thru all css files, find all Open Sans declarations and change it to Muli

If you want whole site text to Muli you will have to change all Arial declarations to Muli too.

 

For example:

In yourdomain/themes/default-bootstrap/css/global.css you have this code:

 

body {
    color: #777777;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 13px;
    line-height: 1.42857;
}

If you want those fonts to be Muli, you need to change font family from arial to muli like this:

font-family: 'Muli';
Link to comment
Share on other sites

dioniz, I did what you suggested. It works great now for the font aspect. Regarding the cart icon, since I still have a missing cart issue. It just disappeared from the homepage together with the currency block which are supposed to be with the nav bar. I tried resetting, uninstalling. Nothing brings back the two, so I can't show you how it was like. If you could please help me figure this issue, I would be really appreciated. Thanks for the help. You make my day :-)

 

www.cookcase.com

Link to comment
Share on other sites

Yes, I have uninstalled and installed again. They are hooked in the right position, but just do not show in page. I really don't know how to deal with this. Thinking of reinstall prestashop but means I need to start from scratch again....sigh....

 

The screenshots are how these block are positioned.

post-784947-0-99568800-1416824809_thumb.jpg

post-784947-0-55683300-1416824838_thumb.jpg

post-784947-0-02489500-1416824867_thumb.jpg

post-784947-0-67271400-1416824885_thumb.jpg

Edited by kook kai (see edit history)
Link to comment
Share on other sites

They are not found under "displayheader", only display in "displaynav" and "displaytop". As my previous attachments, in position tab, both are hooked to "displayheader". However, they are not listed under displayheader. That's the reason they are not shown. Is it possible I did something wrong?

 

I tried to hook the module to the header again, "This module has already been transplanted to this hook." warning tab shows.

post-784947-0-84268200-1416837600_thumb.jpg

Edited by kook kai (see edit history)
Link to comment
Share on other sites

I tried what you suggested. It didn't get the cart back. Perhaps it's better going reinstall root. I don't have a lot of products yet. A little work today is better than wasting a lot of work, then start over again. lol

 

Thank you so much for your help, dioniz.

Link to comment
Share on other sites

dioniz, sorry to trouble you again. I just reinstall prestashop, started all over again. I follow the exact same instruction you provided which was successful before reinstall, this time it doesn't work. If you don't mind, please have a look at my site and let me know what I did wrong. the screenshot is what I see from my mac.

 

www.cookcase.com

 

 

post-784947-0-36882100-1416918056_thumb.jpg

Link to comment
Share on other sites

  • 7 months later...

Font awesome is icon font. Are you sure you want to change that?

default_bootstrap is using Open Sans font and if that is what you want to change you can do it in yourdomain\themes\default-bootstrap\header.tpl

//fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext

Change this to some other google font

But then you will have to change font family in all occurencies in css files

 

Font awesome is icon font. Are you sure you want to change that?

default_bootstrap is using Open Sans font and if that is what you want to change you can do it in yourdomain\themes\default-bootstrap\header.tpl

//fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext

Change this to some other google font

But then you will have to change font family in all occurencies in css files

 

Hi Sir, how can use font awesome for CMS pages. Plz tel me.

 

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...