Categories
Wordpress Tutorials

How to add Google Analytics JavaScript Code to WordPress

A common usage of WordPress plugins is to add “JavaScript code or CSS files , CSS scripts in the head section of every WordPress page or post. In same way you can add Google Analytics code  in WordPress. You can add JavaScript code in WP directly in header.php file or using a plugin. Both discussed in this tutorial.

Categories
PHP Tutorials Wordpress Tutorials

Add custom menu, Add theme locations & register new menu

A WordPress developers guide / tutorial – for adding custom menu in new wordpress theme, add one or multiple new theme locations for the custom WordPress menus, so that menu can appear in those places. Register new menu items. Enable your new wordpress theme to add custom user defined nav menus from the admin dashboard.

Categories
Wordpress Tutorials

Password protecting WordPress Page / Post in which you need to enter password every time

Password protecting WordPress Page or Post : in which you need to enter password every time.

The Problem is : I have set a password for a  page/post in my wordpress blog. I need to ensure that the information should be protected by a password. Normally if you enter a password its kept by the browser cookies. So you don’t need to re-enter passwords. But if I don’t want that. Then what- if I need to re-enter password for each visit..????

Categories
Wordpress Tutorials

No plugin required- remove the pending spam comments in wordpress

Do you know without a plugin you can do this and just you need to write SQL command for it. And you need your website database access for it. Use this SQL command

select * from wp_comments where comment_approved = “0″;

Categories
Wordpress Tutorials

How to create wordpress plugins: tutorials

I have found the following WordPress tutorials very useful for the beginners to write a plugin in WordPress. Here few plugins tutorial has been listed below. You will be able to build simple contact forms in WordPress after reading one, another tutorial will guide you to change the administration section and login page logo etc. Just go through them and enjoy…

Categories
Wordpress Tutorials

WordPress Plugin installation in Ubuntu asking for FTP connection info

Probably this problem don’t arise in Windows system, but arises in Linux, and I have faced this problem in Ubuntu 12.04.4 LTS. I tried to install demo-data-creator.zip plugin located in my Home folder. I opened the WordPress Dashboard in browser. Gone to-

Admin section -> Plugins -> Add New -> Upload, then click CHOOSE FILE button, click INSTALL NOW.

WordPress Plugin installation in Ubuntu asking for FTP connection info:

When I am trying to install a plugin in WordPress , it is asking for FTP connection information like the following

wordpress-plugins-installation-problem-in-linux
wordpress-plugins-installation-problem-in-Ubuntu-linux

The solution:

A solution has been described in this page.

Categories
Linux Wordpress Tutorials

WebRoot access permission, Cannot write in /www/var/html

To install WordPress, to update WP themes in ubuntu, to install or update plugins (WP), to install new WP themes in the WEBROOT of local web servers like Apache, you may have faced the following type of problems. Normally web server folder in local Ubuntu installations are located in /var/www/html .