How to permanently redirect old domain to the new one via htaccess file

Open up the root folder of your project on the old domain and look for the file called. : .htaccess ( If you can’t find it just create one in your text editor) Then just add the following snippet in there:

   

Continue reading


Registering and displaying custom menu in WordPress

add to your function.php file the following code :

then in a template file in a place where the menu need to be displayed :

       

Continue reading