hikashop css is loaded after user.css is loaded

  • Posts: 36
  • Thank you received: 0
  • Hikashop Business
2 days 6 hours ago #369975

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.3.4
-- PHP version -- : 8.4.x
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : none

When I change, in the user.css, the colors of the buttons, they are overwritten by the Hikashop css files.
How can I force the user.css to be loaded after the Hikashop css files?

Thanks in advance.

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

  • Posts: 84939
  • Thank you received: 13835
  • MODERATOR
1 day 12 hours ago #369979

Hi,

The order of the CSS files can be changed in the templates/YOUR_TEMPLATE/index.php file (or in some other file of your template based on how it is developed).
However, usually, you don't want to change that because you're loose your change after each update of the template.
Ideally, rather than doing that, you want to write your CSS code in a way which makes your CSS with a higher priority. For example, a way to do that is to use !important in your CSS:
developer.mozilla.org/en-US/docs/Web/CSS...nce/Values/important

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

Time to create page: 0.058 seconds
Powered by Kunena Forum