Website Development Prices

Pretrazite Blog // Search This Blog

Saturday, February 22, 2020

How to code Wordpress theme from zero - Part 3

Adding sections to page

29) Go to page.php and copy all code. Go to content-template.php and paste it under comment. All code is:

<?php

/*
Template Name: Contact Me page template
*/

?>

<?php get_header();?>

<div class="container">

<h1><?php the_title();?></h1>

<?php get_template_part('includes/section', 'content');?>

</div>

<?php get_footer();?>

After h1 tag add this

<div class="row">
   <div class="col-lg-6">
      This is for contact form.
   </div>

Then cut include part line of code and paste it to second column.


Skola Internet Marketinga