Author Topic: how to remove/hide Site.pro Website Builder menu  (Read 4897 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
how to remove/hide Site.pro Website Builder menu
« on: May 31, 2021, 08:28:02 AM »
I want to delete the Site.pro Website Builder menu from cwp panel, how do I do it?
offline visit : GMaps sedudohost

Offline
**
Re: how to remove/hide Site.pro Website Builder menu
« Reply #1 on: September 30, 2021, 09:21:39 AM »
Hi,

Now sure if you need help still. Anyway here is how you can remove the icon and link about SitePro from the dashboard:

1. Log into your server over SSH as root
2. Open the file /usr/local/cwpsrv/var/services/users/cwp_theme/original/mod_dashboard.html using your favorite text editor. I like "vi":
Code: [Select]
vi /usr/local/cwpsrv/var/services/users/cwp_theme/original/mod_dashboard.html3. Find the line:
Code: [Select]
<div class="col-md-3 dashboard-item"><a href="?module=siteprobuilder"><img src="{{url}}/img/pencil-ruler-solid2.png" class="blue" width="40" style="margin-right: 10px;margin-top: 10px"> <span>Site.pro Website Builder</span></a></div>and change it to:

Code: [Select]
<div class="col-md-3 dashboard-item">{% if ("sitepad" in rmenu ) %}<a href="?module=siteprobuilder"><img src="{{url}}/img/pencil-ruler-solid2.png" class="blue" width="40" style="margin-right: 10px;margin-top: 10px"> <span>Site.pro Website Builder</span></a>{% endif %}</div>
or remove the line.

However, I assume the custom changes will be removed once the theme is updated. So most likely it is better to copy the original theme to some custom folder and make the necessary changes.

More about themes you can find here:
https://docs.control-webpanel.com/docs/developer-tools/theme-construction/user
« Last Edit: September 30, 2021, 09:25:46 AM by cyberspace »