Thord Daniel Hedengren - Smashing WordPress_ Beyond the Blog-Wiley (2014)

(avery) #1

CHAPTER 4 • WordPress Theme Essentials 81



  • Another widget title


    Donec eu libero sit amet quam egestas semper. Aenean
    ultricies mi vitae est. Mauris placerat eleifend leo.






  • First things first: You need to get the references for header.php, footer.php, and sidebar.php in
    there. You’ll use get_header(), get_footer(), and get_sidebar() to achieve this,
    and all you need to do is add the first one to the top and the second one to the bottom and
    then replace the code for the right column with the last one — like this:


    <?php get_header(); ?>






    Post title




    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus
    luctus urna sed urna.


    Donec congue lacinia dui, a porttitor lectus condimentum laoreet.
    Nunc eu ullamcorper orci.





    A second post title




    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus
    luctus urna sed urna.



    1. Lorem

    2. Ipsum

    3. Is slightly overused...


    Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum
    faucibus eget in.



    Free download pdf