Adding Jquery Code to WordPress

For this example we are going to use a script from a sticky menu First, add your script to a .js file located in your theme and make sure you wrap the code with the first and last lines:

Next, add the following to your functions.php file

You […]

Fix http and Thumbnail Error on Image Upload

A client was having issues with her image uploads http error and thumbnails not generating. Smaller images would generate the thumbnail just fine however larger images would upload but fail to generate thumbnails. After uploads the site was also showing an “http” error. After doing some searching I found this […]

Character limit

The following function will create a custom function to create a unique character limit excerpt for the post. Add the following to functions.php:

Add the following to the page template to get the function to show:

Limit Search Results to Blog Posts Only

The following snippet will limit search results to display blog posts only on your search results page. Copy and paste the following into functions.php


Custom Length Excerpt

Here is how to setup a custom length excerpt without cutting off the last word. First, Add the following snippet to your functions.php file:

Next, add the following code where you want the excerpt to show up:

Change your excerpt length from 125 to whatever length you want […]