Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
Hello Everyone, I will be using a custom menu system which will consist of an external css file. In the past, I tried to use include statements in the custom.css, but could not get them to work. #1. So my first question is, can you include "include or import statements" in the custom.css to reference other css files? #2. I really do not wish to include the menu css properties inside custom.css, as I'm trying to keep custom.css to a minimum, is there a way in the system that I can have a global include statement, like somewhere in the header? - I'm not able to find it in the admin section. Many thanks, -Ray Edited by user Wednesday, March 18, 2020 1:44:34 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User Joined: 7/31/2019(UTC) Posts: 77
Was thanked: 8 time(s) in 8 post(s)
|
Hi,
Copy the css file to following path:
Website\Themes\[your theme name]\Content\
And then please update the following file in your theme folder:
Website\Themes\[your theme name]\Theme.config
you have to add a statement like:
<Include Path="Content/yourcustom.css" />
Please make sure the custom.css file remains the last in the list.
Thanks, Naveed Ashraf
|
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
Hello,
Do I create a NEW "Theme.config" file if one is not there?
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User Joined: 7/31/2019(UTC) Posts: 77
Was thanked: 8 time(s) in 8 post(s)
|
Hi Ray,
Sorry the above suggestion seems not valid for your case:
For existing AC9 versions you need to update the following file instead theme.config.
Website\Themes\[you theme name]\Views\Shared\_ThemeStyles.cshtml
NOTE: after this change you may need to restart the application.
The Theme.config file will be available for 9.0.2 version.
Thanks, Naveed Ashraf |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close