Category: Tutorials Archives

Creating WordPress Theme – Widgetizing Custom Theme

Creating WordPress Theme - Widgetizing Custom Theme
Share this to your friends

Share this to your friendsIn your WordPress dashboard, when your creating a custom theme. The Widgets link may not be accessible in your Appearance tab. You need to register or create a new sidebar (this is where widgets can be placed) so that your theme can support implementing widgets. In your functions.php file add : […]

Creating WordPress Theme – Adding Navigation Menu

Creating WordPress Theme Adding Navigation Menu
Share this to your friends

Share this to your friends In the layout we provided, we need to put our horizontal navigation bar under our header. I will be just putting sample categories in my navigation bar. You can put link of your pages if you want. In this example I will just be adding one custom link to my […]

Creating WordPress Theme – Adding Customizer Object

Creating WordPress Theme Adding Customizer Object
Share this to your friends

Share this to your friendsPut this code in your functions.php file ( you must insert the codes inside PHP opening(<?php) and closing(?>) tags. ) : function escimma_setup() { add_theme_support( ‘custom-logo’ ); } add_action( ‘after_setup_theme’, ‘escimma_setup’ ); You can assign a different function name if you want. Here I’m calling it escimma_setup as that is what […]

Creating WordPress Theme – The Index File Loop

Creating WordPress Theme The Index File Loop
Share this to your friends

Share this to your friendsI’m using the index file for this example. Though it might be best to put this code in other PHP file in your theme. We will just directly use the index file for simplicity. 1 <?php get_header(); ?> 2 <section> 3 <aside> 4 </aside> 5 <?php if( have_posts()) : while(have_posts()) : […]

Creating WordPress Theme – Inside Header File

Creating WordPress Theme Inside Header File
Share this to your friends

Share this to your friendsYou’ll probably notice that the header.php file lacks meta tags as this article will be more focus on using WP(WordPress) functions. 1 <!DOCTYPE html> 2 <html <?php language_attributes(); ?>> 3 <head> 4 <meta charset=”<?php bloginfo( ‘charset’ ); ?>”/> 5 <title><?php bloginfo( ‘name’ ); ?> | <?php is_front_page() ? bloginfo( ‘description’ ) : wp_title(); ?></title> 6 […]