Author Topic: How to change font of Abantecart Page?  (Read 3879 times)

Offline BengalEmpire767

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
How to change font of Abantecart Page?
« on: September 20, 2024, 02:24:13 AM »
I want to change the default font, I have searched but cannot find option to change font anywhere. Please help.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6026
  • Karma: +284/-2
    • View Profile
Re: How to change font of Abantecart Page?
« Reply #1 on: September 23, 2024, 02:31:06 AM »
Hello.
The font controlled by your theme CSS. To override theme rules and change the font family in CSS, you can use the following CSS code.
Code: [Select]
<!-- Or in your CSS -->
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Then use the font in your CSS */
body {
    font-family: 'Roboto', sans-serif !important;
}

Offline BengalEmpire767

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
Re: How to change font of Abantecart Page?
« Reply #2 on: September 23, 2024, 12:21:22 PM »
OK, where to use the CSS code?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6026
  • Karma: +284/-2
    • View Profile
Re: How to change font of Abantecart Page?
« Reply #3 on: October 02, 2024, 06:49:19 AM »
OK, where to use the CSS code?

You can directly edit your theme's CSS file in hosting filemanager, such as /storefront/view/default/css/style.css or /extensions/novator/storefront/view/novator/css/tm_style.css. Additionally, you can use third-party extensions to modify the CSS https://marketplace.abantecart.com/custom_css

Offline BengalEmpire767

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
Re: How to change font of Abantecart Page?
« Reply #4 on: October 13, 2024, 05:56:39 AM »
Thanks, although it did not work, though that could be a problem on my end. Will check again in a bit.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6026
  • Karma: +284/-2
    • View Profile
Re: How to change font of Abantecart Page?
« Reply #5 on: October 14, 2024, 02:25:04 AM »
Thanks, although it did not work, though that could be a problem on my end. Will check again in a bit.

Hello. After you edit the CSS code make sure you clear your browser cache.

Offline BengalEmpire767

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
Re: How to change font of Abantecart Page?
« Reply #6 on: October 21, 2024, 12:15:23 PM »
Nope, did not work for some reason, my css skills are too lackluster to change stuff, I suppose. Clearing browser cache did nothing. I don't know if this is correct or not, but are you just supposed to dump the embed code onto the body section or...?

If it does not work, hopefully I can just manually add the font to each specific place I need it, like the carousel, or the about us page. Unfortunately, I don't have enough time to tinker, and exam's rolling around the corner. My dad's dream online store probably will have to wait... apparently he didn't know making a website was hard.

 

Powered by SMFPacks Social Login Mod