Font Awsome Not Working After Update - Question | JoomShaper

Font Awsome Not Working After Update

Bogo Nicole

Bogo Nicole

General 2 years ago

We are using template oneclip and after updating to Joomla 4 Font Awsome in the main menu doesn't work anymore.

0
18 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104843

Custom CSS fix for arrow icon in main menu:

.sp-megamenu-parent > li.sp-has-child > a::after {
  font-family: "Font Awesome 5 Free";
  content: "\f107"; font-weight: 600; }

@media screen and (max-width: 860px) {
.hidden-sm.hidden-xs { display: none; visibility: hidden;}
}

2nd rule is to fix Mobile view problem.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104841

Hi Nicole,

Sorry, I know what happended, It's becuase new version of template uses new Font Awesome v5, not 4.7 as it was. And FA developer made a huge changes (and bigger mess).

Give me 3min to prepare Custom CSS fix for you.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104844

Thanks!!! Now it works fine.

  • Nicole
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104846

Nicole, please add also 2nd part of CSS code!

Thanks.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104853

Thanks very much.

Now I have a problem with the off canvas menu function in the mobile view.

Can you have a look?

  • Nicole
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104858

Have you used all CSS code that I gave you?

No, that's why! Please copy-paste all lines.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104861

Yes, I have.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104865

The off canvas menu doesn't work on mobile view.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104870

Opss, ... extra two lines are needed. To reduce confusion please copy & paste the whole over the old one:

.sp-megamenu-parent > li.sp-has-child > a::after {
  font-family: "Font Awesome 5 Free";
  content: "\f107"; font-weight: 600; }

@media screen and (max-width: 940px) {
.hidden-sm.hidden-xs { display: none; visibility: hidden;}
.offcanvas { visibility: visible;}
.offcanvas-menu .offcanvas-inner .sp-module .sp-module-content > ul {display: block; }
}

Thanks

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104875

yeah! thanks!!

Now it works fine.

I still have trouble with another template. After the update, the off-canvas menu has completely disappeared in the mobile view. I checked the template settings. They are correct.

  • Nicole
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104897
.burger-icon { width: 25px;cursor: pointer; }

#offcanvas-toggler {
  display: flex !important;
  width: 25px;
  align-items: center;
  position: initial !important;
}

.burger-icon > span {
  height: 2px;
  background: whitesmoke;
  display: block !important;
  margin: 5px 0;
  width: 25px;
}

After

info_365_2023.jpg

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104906

Thank you very much.

Now you can see the off-canvas menu in the desktop view.

  • Nicole
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104933

In that case small correction is needed (NEW code):

.burger-icon { width: 25px;cursor: pointer; }
.burger-icon > span { height: 2px;  background: whitesmoke; 
display: block !important; margin: 5px 0; width: 25px;}

@media screen and (max-width: 990px) {
#offcanvas-toggler {
  display: flex !important;
  width: 25px;
  align-items: center;
  position: initial !important;}
    }

it should help, if not ... all .burger-icon classes must be inside { } of @media.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
2 years ago #104934

Now, it is perfect!

Thanks for your support!

  • Nicole
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #104936

Have a wonderful weekend.

You're welcome.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
1 year ago #137940

Hello Paul

I have a question regarding template (oneclip).

I would be very grateful for your help.

  • Nicole
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #138041

It's quite easy ....

from current template (file template.css) copy from line 1666 to 1741, and then use it inside new template (custom.css). It should be all you need to get those shapes..

remember that class name "variation-applanding" must be in body class - but it should be even in new theme.

0
Bogo Nicole
Bogo Nicole
Accepted Answer
1 year ago #138129

Hey Paul Thanks for your quick reply. Unfortunately I need a little more help. I copied it and pasted it into the template under custom css.

Where exactly do I have to insert the class name "variation-applanding"?

  • Nicole
0