The genesis sidebar code which has to be added in functions.php
// Register new sidebar genesis_register_sidebar( array( 'id' => 'Extra-sidebar', 'name' => 'Extra Sidebar', 'description' => 'This is extra sidebar for any purpose.', ) );
The genesis sidebar code which has to be added in functions.php
// Register new sidebar genesis_register_sidebar( array( 'id' => 'Extra-sidebar', 'name' => 'Extra Sidebar', 'description' => 'This is extra sidebar for any purpose.', ) );
Create the underscores based theme at www.underscores.me with following information –
<?php /** * The header for our theme * * This is the template that displays all of the <head> section and everything up until <div id="content"> * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Stock */ ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="site"> <div class="header-area"> <div class="container"> <div class="row"> <div class="col-md-3"> <div class="site-logo"> <h2><a href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo( 'name' ); ?></a></h2> </div> </div> <div class="col-md-9"> <div class="header-right-content"> <a href="mailto:contact@stock.com" class="stock-contact-box"> <i class="fa fa-envelope"></i> Send us an email <h3>contact@stock.com</h3> </a> <a href="mailto:contact@stock.com" class="stock-contact-box"> <i class="fa fa-phone"></i> Give us a call <h3>+014-547-0354</h3> </a> <div class="stock-contact-box"> <i class="fa fa-map-marker"></i> We are open <h3>Mon - Fri, 9am - 6pm</h3> </div> <a class="stock-cart"><i class="fa fa-shopping-cart"></i> <span class="stock-cart-count">3</span></a> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mainmenu"> <?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_id' => 'primary-menu', ) ); ?> </div> </div> </div> </div> </div>
Special Notes:
WP codex functions used:
<?php /** * The template for displaying the footer * * Contains the closing of the #content div and all content after. * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Stock */ ?> <footer id="colophon" class="site-footer"> <div class="container"> <?php if(is_active_sidebar('stock_footer')) : ?> <div class="row"> <?php dynamic_sidebar('stock_footer'); ?> </div> <?php endif; ?> <div class="row"> <div class="col-md-4"> <?php esc_html_e('Copyright 2018 - All Rights Reserved', 'stock-codexcafe'); ?> </div> <div class="col-md-4"> <?php wp_nav_menu( array( 'theme_location' => 'footer-menu' ) ); ?> </div> <div class="col-md-4"> <div class="social-icons"> <a href="#"><i class="fa fa-facebook"></i></a> <a href="#"><i class="fa fa-twitter"></i></a> <a href="#"><i class="fa fa-linkedin"></i></a> <a href="#"><i class="fa fa-youtube"></i></a> </div> </div> </div> </div> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>
Special Notes:
WP codex functions used:
PHP used:
<?php if() : ?> <?php endif; ?>
Special Notes:
Install ftp –
wp-admin
wp-content
WordPress template hierarchy
404.php
archive.php
assets
comments.php
footer.php
front-page.php
functions.php
header.php
inc
index.php
page.php
README.txt
rtl.css
screenshot.png
search.php
searchform.php
sidebar.php
single.php
style.css
template-parts
How to install wordpress on localhost?
How to install wordpress on cPanel?
WordPress dashboard overview.
How to add posts?
How to add posts category?
What is media?
How to add pages?
WordPress comments.
WordPress appearance.
Theme
Theme customization panel
Widgets
Menu
Header
Wordpres plugins
How to search and install plugins
Users
Tools
Settings.
General
Writing
Reading