Friday , 17 November 2017
Home / Tag Archives: php (page 3)

Tag Archives: php

Single Post and Page Templates – WordPress Theme Tutorial

Single Post and Page Templates

WordPress is pretty smart when it comes to knowing what pages to use. The only template file you need is index.php. While it works great for our home page, it doesn’t work so well for displaying categories, archives, pages, and single posts. You can actually create a template for those pages. Before WordPress decides on what page template to use, …

Read More »

The Loop – WordPress Theme Tutorial

The Loop

In this tutorial, we’ll be discussing how to use the WordPress loop. The loop is PHP code by WordPress that displays posts for us. It’s quite simple to use and it gives us tons of information about a post. It allows us to display and format posts in any way we want. Let’s open up our functions.php file and add …

Read More »

Creating Widget Areas – WordPress Theme Tutorial

Creating Widget Areas

Let’s start creating widget areas in our WordPress theme. We will have a total of 5 widget areas. One will be our sidebar and the other 4 will be put in the footer. Creating a widget area is very simple. Registering A Widget Area Open up your functions.php file and add this bit of code. [crayon-5a0f507c38699495149424/] The register_sidebar() function is …

Read More »

WordPress Theme Menu Support

WordPress Theme Menu Support

Having a dynamic theme is important. It allows the user to customize  your theme to their liking. In this tutorial, we’re going to learn how to add WordPress theme menu support. This will allow our users to change the items in the menu with their own titles and links. Adding WordPress Theme Menu Support Before we start displaying the menus, …

Read More »

How to add JavaScript in your WordPress Themes

How to add JavaScript in your WordPress Themes

We have some javascript in our theme. So, let’s learn how to add JavaScript in your WordPress themes. It’s very similar to adding style sheets to your theme. Adding JavaScript Open up your footer.php file and add this line of code right before the closing </body> tag. [crayon-5a0f507c3a0e4920227258/] Just like our wp_head() function, this gives developers access to add their …

Read More »

How to add CSS in your WordPress Themes

How to add CSS in your WordPress Themes

While the content is displaying, it isn’t stylized. So, let’s fix this with some simple functions. First off, we’ll need to create a new file called functions.php. Functions.php WordPress allows you to modify the way it runs by using the functions.php file. If this file exists in your theme and your theme is currently activated, then WordPress will load this …

Read More »

WordPress Template Header – WordPress Theme Tutorial

WordPress Template Header

Right now, we’ve got a blank template.  Let’s copy our code from the index.html file and paste it all into the index.php file. If you refresh your site, then you should see the site. You’ll notice that it’s broken and that’s OK. We’ll fix it in a bit. If you’ve ever created a website before, then you know it’s more efficient to separate …

Read More »

WordPress Theme Header – WordPress Theme Tutorial

WordPress Theme Header

Today, we’ll be discussing how to create the WordPress theme header for your theme and why it’s important to have this file. As I stated earlier, we’ll be using a HTML template called Cool Blue. This template was created by StyleShout. I have modified the template a bit to better suit this tutorial. You can download the modified version here. …

Read More »

Design and Functionality – WordPress Theme Tutorial

Design and Functionality

There’s one thing I would like to discuss before we start creating our themes. I would like to discuss the balance between design and functionality. I’m starting to see a lot of theme developers add certain functionality to their themes where it almost becomes a plugin itself. A WordPress theme is meant to be a presentation of the content and …

Read More »

How to Create A WordPress Theme

How to Create a WordPress Theme

If you’ve ever been interested in creating your own WordPress themes, but didn’t know where to start, then you’ve come to the right place. Content allows you to communicate with your audience and plugins allow you to extend WordPress’s functionality, but there’s 1 extra item to throw into this recipe. Themes. This tutorial series is for anyone who wants to …

Read More »
ULTIMATE WORDPRESS DEVELOPMENT COURSE
Want to learn how to create your own custom WordPress plugins and themes? Check out my course!
Get 93% off my course. You'll also learn how to integrate WooCommerce and BuddyPress into your projects. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!
close-link