Posts Currently viewing the category: "wordpress"

This tutorial assumes you have some prior knowledge of PHPmyAdmin, adding Domains, and copying files. How-to Create a WP Staging Website: 1. First thing you need to do is to create a subdomain ( This allows your staging website to run in a separate folder, not affecting your main website files. 2…(Read More)

If you want to add support to hide field labels on a field by field basis, simply add the following line of code to your themes (functions.php). Make sure to remove the opening and closing php tags add_filter( ‘gform_enable_field_label_visibility_settings’, ‘__return_true’ ); What this code does is adds a Field Label Visibility dropdown under the Appearance…(Read More)

Quick code to define what content shows up based on page type. I had to have different containers show up depending on page. <?php if( is_front_page() ): ?> <?php elseif( is_page() ): ?> <?php elseif ( is_single() ): ?> <?php elseif ( is_home() ): ?> <?php endif; ?&gt…(Read More)

Here is a quick example of how to add a large thumbnail image with the title as the Alt Tag attribute <?php the_post_thumbnail( ‘large’, array( ‘title’ => get_the_title() ) ); ?> You can replace ‘large’ with thumbnail, medium, medium_large, & full…(Read More)

If your blog page is pulling the title of the last/latest post, here is a quick and dirty fix: Add this to your title tags: <?php elseif ( is_home() ): ?> Example: <div class=”container”> <?php if( is_page() ): ?> <?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?&gt…(Read More)

Here is a quick example of how to add a background image to the header of your WordPress website pulling the Feature Image: <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ );?> <div id=”page-sub-header” style=”background: linear-gradient(rgba(0, 0, 0,0.6), rgba(0,0,0,0.6…(Read More)

How to add auto excerpts to a WP Theme: For this example, I’m using the WP Bootstrap Starter theme (remember to create a Child theme, or you will lose any edits after you update). You need to locate content.php file, it should be under the template-parts folder: Find the code: the_content( __…(Read More)

To add a Gravity Form shortcode in the header, page, footer templates… pretty much anywhere in the theme, just add this code in your PHP file: <?php echo do_shortcode(‘[gravityform id=1 name=ContactUs title=false description=false]’); ?> You can also add the embed codes: Basic <?php gravity_form( 1, false, false, false…(Read More)

WP Child Themes


WordPress child themes are really simple to make, but I’ve noticed most tutorials are more complicated then they need to be. All you need are two files in a folder: style.css + functions.php Style.css Replace Template: twentyseventeen with the name of your parent theme (it will be the folder name): function.php…(Read More)