Book Image

WordPress 5 Complete - Seventh Edition

By : Karol Król
Book Image

WordPress 5 Complete - Seventh Edition

By: Karol Król

Overview of this book

Back in the day, when you wanted to launch a new website, you either had to learn web programming yourself or hire a professional who would take care of the whole process for you. Nowadays, with WordPress, anyone can build an optimized site with the least amount of effort possible and then make it available to the world in no time. Here, in the seventh edition of the book, we are going to show you how to build great looking and functional websites using WordPress. The new version of WordPress – 5.0 – comes with a few important changes, and we tell you all about how to use them effectively. From crafting content pages using the block editor, and customizing the design of your site, through to making sure it's secure, we go through it all. The book starts by introducing WordPress and teaching you how to set it up. You are then shown how to create a blog site, start writing content, and even use plugins and themes to customize the design of the site and add some unique elements to set it apart. If you want to get more in-depth, we also show you how to get started creating your own themes and plugins. Finally, we teach you how to use WordPress for building non-blog websites. By the end of the book, you will be sufficiently skilled to design high-quality websites and will be fully familiar with the ins and outs of WordPress.
Table of Contents (18 chapters)
Free Chapter
1
Section 1: WordPress
6
Section 2: Customizing WordPress
14
Section 3: Non-Blog Websites

Making your theme widget-friendly

If you want to be able to use widgets in your theme, you will need to make your theme widget-friendly (also known as widgetizing your theme). Widgetizing is actually pretty easy, and to be honest with you, we already took care of that when constructing our sidebar. Let's now go back to this and explain how widgetizing works.

Going back to our sidebar

Back in the old days, it was very common for a WordPress site to use statically placed content blocks in the sidebar. In other words, the only way to place dynamic content in the sidebar of our sites was to use handmade code that would fetch whatever data we wanted and then display it. This solution wasn't very usable for everyday users...