In this video we will create the layout for single posts as well as regular pages.

Project Files – https://github.com/bradtraversy/wpbootstrap_theme

10 PROJECT WORDPRESS THEME COURSE: https://www.eduonix.com/affiliates/id/16-10405

source

21 Comments

  1. My comments section wasn't registering the styles that I was adding to style.css. After registering and enqueuing the stylesheet in functions.php, single.php was finally able to receive those style changes.

    function load_stylesheet()

    {

    wp_register_style( 'style', get_stylesheet_directory_uri() . '/style.css' );

    wp_enqueue_style( 'style' );

    }

    add_action( 'wp_enqueue_scripts', 'load_stylesheet' );

  2. Hello Brad and thank you for your time .

    I actually have one small question . in this video now why you didn't use bootstrap from and you style the comment form all by clear css ?

  3. I was having a problem w the footer reading style.css, so made a switch from the hardcoded plain HTML stylesheet ref, to
    <link href="<?php bloginfo('template_url') ?>/style.css" rel="stylesheet">. It did the trick.

  4. Awesome tuts! One question, at the end on page.php you change the error string to No Page Found, but the if statement is just checking for have_posts(), is that also checking for pages or we need another method.

Leave A Reply

Please enter your comment!
Please enter your name here