Creating your own admin theme

Building a complete admin theme is a time-consuming task, which is beyond the scope of this chapter, as we need to define custom styles for all the existing CSS selectors. Therefore, we will provide a head start to the admin theme design by altering the main navigation menu. Let's start by creating a class called class-wpwaf-admin-theme.php inside the forum management application. As usual, you will have to require the file inside the main plugin file.

As usual, we need to include this function and initialize an object from this class inside the WPWAF_Forum class. Let's start by defining the style sheet for the admin theme using the following code:

    <?php     class WPWAF_Admin_Theme {  public function __construct() ...

Get Wordpress Web Application Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.