Claudia M Posted March 4, 2022 Share Posted March 4, 2022 How do I change the tab colors for just products in admin? I can't fifure out which file is it. Thanks in advance, Claudia Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 4, 2022 Share Posted March 4, 2022 In the admin skin file layout.css, near line 463, is a style rule for all tabs. Then, near line 489, is a style rule for the tab that is selected. A tab has a background that is light-grey, unless selected, which is white. Unfortunately, there is nothing in the HTML code that the browser could use to positively identify that any page is for anything specific: categories, products, documents, etc. So, we will try to have Smarty add styling if a certain condition applies. In the admin skin template main.php, near line 60, find: <div id="content"> <div id="tab_control"> On a new blank line after that, add: {if $smarty.get._g eq "products"} <style> #content #tab_control div.tab { background-color:#DDF !important; } #content #tab_control div.tab-selected { background-color:#AAF !important; } </style> {/if} This tests if the web address, in the querystring, has _g=products, then put in the styling. Pick your own selected and non-selected tabs' background colors. Quote Link to comment Share on other sites More sharing options...
Claudia M Posted March 4, 2022 Author Share Posted March 4, 2022 Thanks Brian! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.