- Posts: 39
- Thank you received: 4
Override frontend_default.css
11 months 3 days ago #369591
by spike252
Override frontend_default.css was created by spike252
-- 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;
}
-- 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.
11 months 3 days ago #369594
by nicolas
Replied by nicolas on topic Override frontend_default.css
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.
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.
11 months 3 days ago - 11 months 3 days ago #369601
by spike252
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 ?
Replied by spike252 on topic Override frontend_default.css
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: 11 months 3 days ago by spike252.
Please Log in or Create an account to join the conversation.
11 months 3 days ago #369607
by nicolas
Replied by nicolas on topic Override frontend_default.css
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.
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.115 seconds