moorewebx


Add Google Analytics to Functions.php in WordPress

The following code will add Google analytics tracking code to your WordPress site’s header. Simply replace “UA-000000000-1” with your analytis UA tracking code and insert the snippet into functions.php.


Remove Content Editor box from Custom Post Type

The following snippet of code will remove the content editor box from a specific custom post type.


Show Content Only on Home Page or Front Page

The following code will allow you to display content on the home page, or front page, only.

If you want to use this as a conditional statement you could do the following:


Search Engine Bot IP Addresses

Below is a list of the major search engine bot IP address ranges.  It is a good idea to whitelist these to make sure they can access your website.  If you use iThemes Security Pro you can do this in the “Global Settings” area and copy and paste the CIDR […]