Control Web Panel

WebPanel => Addons => Topic started by: mcyahoo on May 31, 2021, 08:28:02 AM

Title: how to remove/hide Site.pro Website Builder menu
Post by: mcyahoo 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?
(https://i.ibb.co/GQkpFpW/Screenshot-2021-05-31-15-16-25.png)
Title: Re: how to remove/hide Site.pro Website Builder menu
Post by: cyberspace 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