Font awsome for publish icon in backend

  • Posts: 21
  • Thank you received: 1
  • Hikamarket Frontedition Hikaserial Standard Hikashop Business
2 weeks 6 days ago #360263

-- url of the page with the problem -- : local test environment
-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5.03.
-- PHP version -- : 8.1.13
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : none

In backend there is an icon for publishing / depublishing a category / product/ coupon etc.


When I use the inspector it says that the font-family: "Font Awesome 6 Free";
The html part is
<a href="javascript:void(0);" class="icon-publish" onclick="joomTogglePicture('product_published-1', '0', 'product');" title=""> </a>
When I change the <a with <i, the correct icon is shown (apart from the color, which is an css thing). I can even switch the value of publish.

Source code: administrator/com_hika-shop/helpers/toggle.php line 67.

Can this be sort of a bug or do I do something wrong?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 4533
  • Thank you received: 612
  • MODERATOR
2 weeks 5 days ago #360264

Hello,

This is maybe caused by the font-awesome library not being loaded on the page. That's the library used by HikaShop to display the icons of the buttons and edition links that you don't see anymore.
Now why font-awesome is not loaded We don't know.
I would need a backend access to check the situation on the page to be able to tell you.
So, maybe you can come back to us as soon as the site is accessible online?

Note: Use our Contact us form to provide your backend access (Url to administrator) & references (Backend user with maximum Acl), and don't forget to add an Url link to this topic.

I suppose it's linked to another extension or even the template you're using which has its own font-awesome which breaks ours, or you have modified the HikaShop database to remove font-awesome for some reason ( See this other topic ).
Regards

Last edit: 2 weeks 5 days ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 1
  • Hikamarket Frontedition Hikaserial Standard Hikashop Business
2 weeks 5 days ago #360272

I just did a fresh install of J5 and Hikashop. The icons showed as expected.

Ik will have to investigate on my system.
Font awesome is loaded. on the page. When I disable this font in the inspector the icons in the menu change.

ps, I am talking about the backend with the standard Atum (child) template.
Keep you informed.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 1
  • Hikamarket Frontedition Hikaserial Standard Hikashop Business
2 weeks 5 days ago #360274

Philip,
I found the problem.
I am using an custom css file to compress the admin pannel.
This user.css was published on github ( github.com/TheStyleGuyzTeam/J4Atum-user-css ) but does not exists anymoren.

In this css file there was a style item. like shown below.

.cpanel-modules .list-group-item a,
.table tbody td,
.table tbody a:not(.badge) {
font-size: 0.875rem;
line-height: 1.2;
/*font-weight: 400;*/
}
Commenting out the font-weight resulted in the correct icons. (font-weight now is 900 as comes from the font-awesome css.

Thanks for pointing me to the option of the templae/ css.

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum