Post by kazihaha » Wed Jun 29, 2016 4:09 pm

I saw this line in my source

Code: Select all

<link
rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto+Slab:regular,700%7COswald:regular%7CRoboto:regular,700,500&subset=latin"/>
Could I self host these font on my host?
Please help me.

https://sieuthithietbivanphong.com


New member

Posts

Joined
Wed Sep 23, 2015 2:13 pm

Post by viethemes » Wed Jun 29, 2016 10:37 pm

You should contact the theme developers to take a look at this. They know their product the best :)

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by kazihaha » Thu Jun 30, 2016 10:53 am

I did it myself :v

https://sieuthithietbivanphong.com


New member

Posts

Joined
Wed Sep 23, 2015 2:13 pm

Post by OSWorX » Thu Jul 07, 2016 9:59 pm

viethemes wrote:You should contact the theme developers to take a look at this. They know their product the best :)
Has basically nothing todo with any developer.
How to do so read (e.g.) here:
http://victorfont.com/use-google-fonts-locally/
https://developers.google.com/fonts/faq

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Rainforest » Thu Oct 05, 2017 1:34 am

I appreciate the link to the font file.
I did that, created a stylesheet but what Journal 2 theme file do we change the stylesheet link?

Self Taught Opencart User & Developer Since 2010.


User avatar
Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by motion2082 » Wed Jul 04, 2018 11:09 am

Hey mate,

Trying to do the same here

Journal pulls in the Google fonts in the header.tpl file

Line 58-60

Code: Select all

<?php foreach ($this->journal2->google_fonts->getFonts() as $font): ?>
<link rel="stylesheet" href="<?php echo $font; ?>"/>
<?php endforeach; ?>
I guess you could take this out and replace with a locally hosted Google Font

I'm trying to work it out too

Active Member

Posts

Joined
Tue May 12, 2015 8:48 pm

Post by khnaz35 » Thu Oct 31, 2019 9:17 pm

OSWorX wrote:
Thu Jul 07, 2016 9:59 pm
viethemes wrote:You should contact the theme developers to take a look at this. They know their product the best :)
Has basically nothing todo with any developer.
How to do so read (e.g.) here:
http://victorfont.com/use-google-fonts-locally/
https://developers.google.com/fonts/faq
Hey can you help with this i am using OC 2.3.0.2 with Journal 2.9.2
Ensure text remains visible during webfont load
i was reading few blog and found one of this
https://www.infyways.com/fix-ensure-tex ... font-load/

but couldn't figure it out where to change the

Code: Select all

@font-face {
  font-family: "Open Sans Regular";
  font-weight: 400;
  font-style: normal;
  src: url("fonts/OpenSans-Regular.woff2") format("woff2");
  font-display: swap;
}

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by OSWorX » Thu Oct 31, 2019 11:44 pm

khnaz35 wrote:
Thu Oct 31, 2019 9:17 pm
Hey can you help with this i am using OC 2.3.0.2 with Journal 2.9.2
..
but couldn't figure it out where to change the
Hey, no support for Journal Themes.
But what you are looking for, is already described in the mentioned article:

Code: Select all

<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by khnaz35 » Sun Dec 15, 2019 7:16 pm

OSWorX wrote:
Thu Oct 31, 2019 11:44 pm
khnaz35 wrote:
Thu Oct 31, 2019 9:17 pm
Hey can you help with this i am using OC 2.3.0.2 with Journal 2.9.2
..
but couldn't figure it out where to change the
Hey, no support for Journal Themes.
But what you are looking for, is already described in the mentioned article:

Code: Select all

<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
Thanks for pointing it out :)

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 1 guest