Override frontend_default.css

  • Posts: 36
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
11 hours 10 minutes ago #369591

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.0
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox

How can i make an override for frontend_default.css?

Setting overrides in my custom.css file doesn't work. The Cart Buttons are green in Pop-up. I need it #ef7d00;

.hikacart {
color: #fff;
background-color: #ef7d00;
border-color: #ef7d00;
}
.hikacart:focus {
color: #fff;
background-color: #ef7d00;
border-color: #ef7d00;
}
.hikacart:hover {
color: #fff;
background-color: #ef7d00;
border-color: #ef7d00;
}

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

  • Posts: 84734
  • Thank you received: 13800
  • MODERATOR
7 hours 34 minutes ago #369594

Hi,

I tried to access your URL but it doesn't work for me:
i.imgur.com/zmni75E.png
Note that I suspect that your issue is linked to what you wrote about in this other thread:
www.hikashop.com/forum/product-category-...rt-and-variants.html
It could also be a caching issue so make sure your clear your browser's cache for your website as browsers can cache popups content in some cases in order to speed up browsing.

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

  • Posts: 36
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
7 hours 26 minutes ago #369601

This message contains confidential information

This message contains confidential information
This message contains confidential information


Only after edit frontend_default.css changes works! But after an update, the changes would be gone again. How do I create an override for frontend_default.css ?

Last edit: 7 hours 24 minutes ago by spike252.

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

  • Posts: 84734
  • Thank you received: 13800
  • MODERATOR
4 hours 44 minutes ago #369607

Hi,

Creating the override is easy. Go to the HikaShop configuration page and under the Display tab, edit the Frontend CSS file:
www.hikashop.com/support/documentation/5...fig.html#display_css
In the popup, change the CSS, save in the popup, and then save the configuration and you should be set.

However, the best is to add your custom CSS code to your Joomla template. Normally, Joomla templates have a mechanism to support custom CSS from the user and I can see that you're already using it.
The problem with the popup not taking into account that custom CSS from your template is the same as in the other thread: your template's component.php file is missing the code to include the custom CSS file if it exists.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum