Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WordPress Web Application Development - Second Edition
  • Table Of Contents Toc
WordPress Web Application Development - Second Edition

WordPress Web Application Development - Second Edition

By : Rakhitha Nimesh Ratnayake
5 (2)
close
close
WordPress Web Application Development - Second Edition

WordPress Web Application Development - Second Edition

5 (2)
By: Rakhitha Nimesh Ratnayake

Overview of this book

This book is intended for WordPress developers and designers who want to develop quality web applications within a limited time frame and for maximum profit. Prior knowledge of basic web development and design is assumed.
Table of Contents (14 chapters)
close
close
13
Index

Widgetizing application layouts


As mentioned earlier, we have the option of creating template files inside a theme or a plugin. Here, we will create the templates inside the plugins folder to improve flexibility. So, let's begin the process by creating a file called class-wpwa-theme.php within the root directory of our main plugin and including it in the class-wpwa-portfolio-manager.php file. Next, we can update the constructor code as follows to register the widgetized area for the home page:

class WPWA_Theme {
  public function __construct() {
    $this-> register_widget_areas();
  }
  public function register_widget_areas() {
    register_sidebar(array(
      'name' => __('Home Widgets','wpwa'),
      'id' => 'home-widgets',
      'description' => __('Home Widget Area', 'wpwa'), 'before_widget' => '<div id="one" class="home_list">',
      'after_widget' => '</div>',
      'before_title' => '<h2>',
      'after_title' => '</h2>'
    ));
 ...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WordPress Web Application Development - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon