Applies to VoipNow 3 and higher!
This article describes how to hide the country code element from the interface with a simple edit in the interface template.
By default, the CallNow page looks as shown below.
To hide the country code element (drop-box and field) from the CallNow template, take the following steps:
STEP 1: Connect to your VoipNow server as
root using a SSH client (e.g.
STEP 2: Go to the
<VOIPNOW_ROOT_D> is a variable defined in the
/etc/voipnow/paths.conf file. When running commands, you must have it replaced with its value (e.g.
STEP 3: Display the
index.tpl file's content by running:
index.tpl search for:
STEP 4: To change the layout of the page, edit the
<VOIPNOW_ROOT_D>/admin/htdocs/templates/callnow/index.tpl file. Open the file using your favorite text editor, and you'll find the country code drop-down list defined by the following line:
To remove the country code drop-down list and the entire field, comment its corresponding lines. To comment a line, you must replace
} with *}. To remove the entire field, add <!-- before the <tr tag and --> after </tr>
In the end, the entire block should look as displayed below:
In the end, save the file, remove the cached files and restart the web interface service:
At this point, when you open the CallNow page, it should look as shown below.
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.