How to remove the "PrestaShop News" and "PrestaShop Link" blocks from the dashboard of the admin panel in PrestaShop
By default, when you log in to the backend of your PrestaShop store there are various blocks displayed on the dashboard (the home page of the admin panel). Two of these blocks are the PrestaShop News and PrestaShop Link blocks. The first one shows various PrestaShop news, and the other one displays links to the forum and addons section of the official site, as well as some other links. If you want to hide these blocks, you have to make some modifications.
In PrestaShop 1.5 you need to edit a file called AdminHomeController.php. If you have installed PrestaShop directly in the public_html folder on your PrestaShop hosting account, then the path to the file will be public_html/controllers/admin/AdminHomeController.php. To hide the PrestaShop News panel comment out the following code in the file AdminHomeController.php:<div class="row-news"><div id="block_discover"> <iframe frameborder="no" style="margin: 0px; padding: 0px; width: 100%; height:300px; overflow:hidden;" src="'.$protocol.'://api.prestashop.com/rss2/news2.php?v='._PS_VERSION_.' &lang='.$isoUser.'"> </iframe></div>
To hide the PrestaShop Link panel comment out the following code (it's just above the code for the news block):
To comment out code put an exclamation mark and two hyphens after the first bracket of the string (e.g. <!--div) and two hyphens before the last bracket (e.g. /div-->). You can edit the file from the Files section of the Pixie control panel. Another way is to download the file with an FTP client (e.g. FileZilla), edit it with a text editor (e.g. Notepad, Wordpad) and upload it back in the same folder overwriting the old file.
In PrestaShop 1.4 to remove both the PrestaShop Link and PrestaShop News panels from the dashboard of the back office you need to edit the file AdminHome.php. Assuming that the root PrestaShop directory on your PrestaShop hosting account is public_html, the path to the file will be public_html/admin_directory/tabs/AdminHome.php (you need to replace admin_directory with the actual name of your admin folder). In that file comment out the code:<div id="discover_prestashop"> <p class="center"><img src="../img/loader.gif" alt="" /> '.translate('Loading...').'</p> </div>
In case you want to remove only the PrestaShop News block, for example, don't modify the file AdminHome.php but edit the ajax.php file instead. With public_html being the root PrestaShop directory the path to the file will be public_html/admin_directory/ajax.php. Comment out the following code:<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 315px; height: 290px;" src="'.$protocol.'://www.prestashop.com/rss/news2.php?v='._PS_VERSION_.' &lang='.$isoUser.'"> </iframe>
After that clear the browser cache and refresh the home page of your PrestaShop admin panel.
In case you want to remove the optimization tips block read the article on removing the optimization tips block from the homepage of the back office in PrestaShop.
Was this answer helpful?
- How to create and manage credit slips in PrestaShop 1.5-1.6
- How to create a child theme in PrestaShop
- How to add and manage currencies and payment module restrictions in PrestaShop
- How to add product manufacturers and suppliers in PrestaShop
- How to disable the update notification message shown in the admin panel of PrestaShop