Tips and Tricks

Changing the slug or permalink in Easy Digital Downloads

We use Easy Digital Downloads to sell digital goods online, each products has a unique URL. By default Easy Digital Downloads permalink looks like this: If you check a closer look you will find that on every product URL, Easy Digital Downloads uses the “downloads” slug . This is the default slug created by the EDD plugin. Based on what you are selling online, you may wish to change this to better suit your needs. If you are selling e-book online, it would be better to change it to something like “books”. Please follow the following steps to do this slug change. Open your theme’s functions.php  file. EDD_SLUG : Copy the following code and paste it into the functions.php for slug change: if ( ! defined( ‘EDD_SLUG’ ) ) { define( ‘EDD_SLUG’, ‘books’ ); } Label : Change the Admin Dashboard Label for Download post type: Add the below code in functions.php…    read more 

[ Solved ]How to Change the WWW Root Directory on WampServer 3

Yes, we all want to save our files and documentation from system crash of C Drive. To avoid this issue we generally locate our “WWW” or “htdocs” directory in different location from the default installation directory i.e. C Drive. So it’s very easy to change the “WWW” directory in latest WampServer 3 that comes with PHP 5.6 , 7.x , MySQL as well as MariaDB.  Click on WampServer icon in right side bottom taskbar Select the Apache menu  -> httpd-vhosts.conf from the Pullup menu box. Search (CTRL + F)for the term “DocumentRoot” Change the DocumentRoot path “${INSTALL_DIR}/www” to your custom directory e.g. “E:/www” Save your changes and “Restart All Services” When you browse to http://localhost, before the directory change the localhost window looks like this one. And after the change for directory the localhost window looks like this one. Server Configuration Apache Version: 2.4.33  – Documentation PHP Version: 5.6.35 and 7.x support – Documentation…    read more 

[ Solved ] Change PHP version 5.6 to 7.x in WampServer 3

 Click on WampServer icon in right side bottom taskbar Select the PHP menu  ->Version  from the Pullup menu box. Check the version via browsing http://localhost or via command line typing following command php -version Done ! Recommended Readings: