Jump to content
myTweak

Domain templates

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

css.JPG

Share this post


Link to post
Share on other sites

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
}

Share this post


Link to post
Share on other sites

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.

 

vodia_blue.JPG

vodia_blue2.JPG

vodia_blue3.JPG

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...