myTweak Posted February 27, 2020 Report Share Posted February 27, 2020 Hello, is it possible to edit the subcategories in css? It loads styles from another css file which i dont see in the template list. I just want to set the color green like we have it now in the appearance.css. So far the index looks fine with the company color but the domain list and sub buttons are still blue. Br myTweak Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted February 27, 2020 Report Share Posted February 27, 2020 You need to make sure that the browser really loads the CSS files - most browsers try to use the cache and don't even load the file if the name is the same. We include a version=xx in the name so that it will load the files after an upgrade, however that does not work if you modify the templates. One way to do this is to open the debugger and click on disable cache in the network section. Quote Link to comment Share on other sites More sharing options...
myTweak Posted February 27, 2020 Author Report Share Posted February 27, 2020 We have tested the site on more pcs and with different browsers and also cleared the browser cache. If someone can point me to the section in the appearance.css where to edit the subcategories, then this would be helpfull. Maybe i overlooked something... Quote Link to comment Share on other sites More sharing options...
Support Posted February 27, 2020 Report Share Posted February 27, 2020 You can just use this doc page to change colors. https://doc.vodia.com/appearance Quote Link to comment Share on other sites More sharing options...
myTweak Posted February 27, 2020 Author Report Share Posted February 27, 2020 We did that already and i changed all the #337ab7 to our color #719430 but when i click on Domains -> List, the domains still appear in #337ab7 (blue) and the parameter points to a bootstrap-3.3.7.min.css but i cant edit this page Quote Link to comment Share on other sites More sharing options...
Support Posted February 27, 2020 Report Share Posted February 27, 2020 Silly idea: Please try to clear all the cache and try it on incognito. Quote Link to comment Share on other sites More sharing options...
myTweak Posted February 27, 2020 Author Report Share Posted February 27, 2020 Tried that already... also with different browsers where we never opened the vodia pbx portal. It is clear that it loads the #337ab7 color from another css file which i cant edit. Quote Link to comment Share on other sites More sharing options...
Support Posted February 27, 2020 Report Share Posted February 27, 2020 Append this to the index.css and try it out. #accounts > tbody > tr > td:nth-child(2) a{ color: blue } OPTIONAL: #accounts > tbody > tr > td:nth-child(2) a:hover{ color: blue } #accounts > tbody > tr > td:nth-child(2) a:active{ color: blue } Quote Link to comment Share on other sites More sharing options...
myTweak Posted February 28, 2020 Author Report Share Posted February 28, 2020 Looks better so far. That changed now the Extensions to "green", which we need. But the Domain names, Extension Menu, Menu Buttons, the MAC adresses, Trunks, Dial plans, Call History, still appears blue. Quote Link to comment Share on other sites More sharing options...
Support Posted February 28, 2020 Report Share Posted February 28, 2020 Hi, Using the above solution that we gave you can go ahead and add more custom CSS rules to your portal. Quote Link to comment Share on other sites More sharing options...
myTweak Posted March 2, 2020 Author Report Share Posted March 2, 2020 On 2/28/2020 at 4:22 PM, Support said: Hi, Using the above solution that we gave you can go ahead and add more custom CSS rules to your portal. Seriously??? That are a lot of sub sites where i dont even know the function and must search for the name in html code. This is a lot of work and this should be included in the Templates. Is there at least a list or something like in Templates? Im just wondering why is there a Template edit function when half of the sub categories remains blue. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted March 3, 2020 Report Share Posted March 3, 2020 We follow the idea that style should be in the CSS files and functionality should be in the JS files. The HTML should be the skeleton. There are always (hopefully small) exceptions, e.g. when it is just a lot easier to add dynamic content in JavaScript and include a class. There is a central CSS file that (in theory) should contain only the generic style information, and there are a few JS files that contain generic functionality e.g. how to format phone numbers. We don't encourage customers to change the JS files because that would usually cause just huge support efforts. The web server was not designed for frequent updates - that's why you need to tell the browser not to cache files when making changes. We know this when we make changes and it does not cause any problems once the browser stops caching things. 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.
Note: Your post will require moderator approval before it will be visible.