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)
|
I need to make some modifications to the style.css in the admin area. This stylesheet is located in the \\Areas\Admin\Views directory structure.
Modifying the style.css works, however I prefer not to touch this file. Can I override this file by placing an identical file someplace else like we can do in themes?
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
I'm not sure if it is possible via themes. I could get custom views to work, but it wouldn't automatically pick up CSS files in the directory structure. I think the _Layout.cshtml file needs to be edited to include a custom CSS file, or you need to register the custom CSS as part of a bundle in the BundleConfig.cs file.
|
|
|
|
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)
|
Sorry if I confused you, it has nothing to do with themes, I said to mimic the Functionality of themes by overwriting certain parts of the style.css. In other words, I do not want to edit the admin style.css directly, but have a copy someplace else that the admin backend will pick up. Note: You can do this now with "cshtml" files in admin under ..\view\custom\dir ... I hope this helps clarify. Edited by user Monday, June 28, 2021 10:36:37 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Hi,
This is not possible with CSS style includes on the admin side. You can only override cshtml files in admin.
To override the style.css styles, you can add styles in custom.css that is already included in the project and placed in the same folder.
Hope this helps!
|
|
|
|
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)
|
I figured as much, I created a custom stylesheet, strictly for the admin, and I will reference it when needed on the view files.
Thanks
|
|
|
|
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