Book Image

Bootstrap 4 Site Blueprints - Second Edition

By : Ian Whitney, David Cochran
Book Image

Bootstrap 4 Site Blueprints - Second Edition

By: Ian Whitney, David Cochran

Overview of this book

Packed with trade secrets, this second edition is your one-stop solution to creating websites that will provide the best experience for your users. We cover six popular, real-world examples, where each project teaches you about the various functionalities of Bootstrap 4 and their implementation. The book starts off by getting you up and running with the new features of Bootstrap 4 before gradually moving on to customizing your blog with Bootstrap and SASS, building a portfolio site, and turning it into a WordPress theme. In the process, you will learn to recompile Bootstrap files using SASS, design a user interface, and integrate JavaScript plugins. Towards the end of the book, you will also be introduced to integrating Bootstrap 4 with popular application frameworks such as Angular 2, Ruby on Rails, and React.
Table of Contents (15 chapters)
Bootstrap 4 Site Blueprints
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Styling your blog posts


First add an image to the hello world blog post. Edit the blog post in the WordPress Dashboard and add a Featured Image, as shown in the following screenshot:

Note

Make sure that your WordPress installation has a writable wp-content/uploads directory to store the uploaded media. Also see https://codex.wordpress.org/Changing_File_Permissions for more information about file permissions.

Now edit the loop-archive.php file so that the HTML and PHP code looks like that shown here:

<article id="post-<?php the_ID(); ?>" <?php post_class(''); ?> role="article"> 
<?php the_post_thumbnail('full'); ?>

<div class="blog-post"> 
    <header class="article-header"> 
        <h2><a href="<?php the_permalink() ?>" rel="bookmark" ><?php the_title(); ?></a></h2> 
        <?php get_template_part( 'parts/content', 'byline' ); ?> 
    </header> <!-- end article header --&gt...