
In this lecture, you will learn about WordPress server requirements and install MAMP to run WordPress locally.
In this lecture, we will install a fresh copy of WordPress on our local server.
You will learn how to start a new WordPress theme.
In this lecture we will install some plugins that will help us during the theme development. We will also import dummy data to work with.
Explore how the WordPress loop sets the global post variable and uses template tags inside and outside the loop, with practical coding examples and pagination.
Understand how WordPress builds main and custom loops with WP_Query, have_posts, the_post, template tags, and wp_reset_postdata to fetch posts including category id 4.
Explore the WordPress template hierarchy, identifying template files and partials, and see how category archives fall back through category-unicorns.php, category-id, category.php, archive.php, to index.php.
Explore how to use WordPress core functions and create custom, prefixed theme functions in functions.php, organize code with helpers, and decide when to build plugins versus themes.
Explore npm and gulp basics, learning how to manage dependencies with package.json and node_modules, and automate tasks like compiling SASS to CSS, minifying CSS and JavaScript, and image compression.
Install node.js and npm, then initialize npm in your theme folder. Globally install the gulp CLI and gulp, create a gulpfile.js and its tasks.
Set up gulp tasks for production and development using yargs to pass a --prod flag, enabling Sass to css compilation and minification only in production, and organize assets in src/assets.
Minimize and automate asset management for WordPress themes by using gulp-imagemin to compress source images into dist/assets/images, with production options, and create a copy task to transfer other assets.
Create a gulp task to bundle JavaScript with webpack and babel-loader, transpiling ES6 modules into a single bundle.js loaded via wp_enqueue_scripts.
Explore how hooks let theme and plugin developers interact with WordPress core without edits, using actions and filters to extend a premium theme.
Discover how WordPress core actions work and how to hook into them with do_action and add_action. Explore examples like plugins_loaded, init, wp_head, and pre_get_posts to customize themes.
Apply css grid and bem conventions to structure a WordPress theme, using o-container, o-row, and o-row__column, plus main and sidebar markup, and post_class and body_class for styling posts.
Build a functional WordPress header with a site title and custom search form, bundling Font Awesome via npm, and enabling HTML5 support through theme hooks.
Learn how to register and display navigation menus, including main and footer locations and mega menus, implement accessible keyboard navigation, and render the menu in the header with wp_nav_menu.
Enhance menu accessibility for keyboard and screen readers by preserving the focus ring, converting dropdown arrows to buttons, and adding aria-haspopup and aria-expanded through WordPress nav_menu_link_attributes.
Learn to build an accessible dropdown menu by wiring a button with keyboard and click events, toggling aria-expanded and aria-hidden, and ensuring only one submenu stays open.
Learn to add a site info setting with wp_customize, group it under a footer section, set a default and sanitize callback, and display it with get_theme_mod.
Learn how postMessage enables cross-origin communication between the WordPress customizer and the iframe to update settings without refreshing the preview, plus how to enqueue a customize-preview script and handle changes.
Learn to refresh only parts of the site preview with selective refresh, using partials, ajax, and a render_callback to update selectors like blogname and site-info.
Add a footer layout text field to the theme customizer with a default 3,3,3,3, sanitize input, and validate a four-number pattern up to 12 for responsive footer columns.
Add a custom logo to your WordPress theme by enabling custom-logo with flex-height and flex-width, then display it in the header using has_custom_logo() and the_custom_logo().
Create a color picker in the WordPress customizer, add an accent_color setting with WP_Customize_Color_Control, sanitize with sanitize_hex_color, and load inline CSS via wp_add_inline_style for dynamic theme colors.
Learn to make the accent color preview update instantly in WordPress themes by using customize.php postMessage callbacks, JS to update inline styles, and efficient preview techniques.
Learn how to pass PHP variables to JavaScript with wp_localize_script to generate dynamic inline CSS for live preview, avoiding duplication by defining selectors in PHP and rebuilding styles in JavaScript.
Explore WordPress security concepts, including roles and capabilities, nonces, and permission checks with current_user_can and user_can, as you implement role-based post deletion links.
Define metadata and demonstrate how to add, retrieve, and display custom fields in WordPress posts using get_post_meta, meta keys and values, and meta boxes.
Create WordPress metaboxes with a post subtitle field, register via add_meta_boxes, save with update_post_meta from $_POST during save_post, and retrieve with get_post_meta.
Secure metabox data by validating user capabilities with dynamic post type checks and nonce verification, then save and retrieve fields with update_post_meta and get_post_meta, while planning plugin-based portability.
Bundle and auto-install required plugins with your WordPress theme using the TGMPA library, defining plugins and configuration in PHP to activate bundled metaboxes and ensure smooth distribution via ThemeForest.
Build A Premium Wordpress Theme : Create Wordpress Themes : How To Create A Premium Wordpress Theme From Scratch For Themeforest
In this course, you will learn everything you will need to create premium WordPress themes that are guaranteed to get accepted on marketplaces like themeforest.
Become a WordPress themes expert and make money online by publishing your themes!
Understand WordPress concepts in more depth and learn how things work behind the scenes.
Create a secure Wordpress theme that is guaranteed to pass themeforest's security review.
Learn how to make your theme translatable.
Explore some advanced JavaScript workflows that will help you automate regular tasks like minifying CSS.
Understand WordPress's actions and filters.
Make your themes modifiable by understanding child themes.
Add powerful options to your theme using the powerful WordPress Customizer API.
Make your theme compatible with the new WordPress editor 'Gutenberg'
Explore web accessibility and get some tips on how to make your theme more accessible.
Create WordPress plugins that will supplement your theme.
Learn everything about WordPress functionalities like: sidebars, navigation menus, custom fields, shortcodes, post formats, custom post types, custom taxonomies, custom widgets and more.
Take your WordPress knowledge to the next level
Are you looking to code premium WordPress themes that will pass the coding standards review on websites like themeforest?
Do you have great designs or you work with a designer and you have HTML/CSS/JS/PHP knowledge and you want to convert your designs into great WordPress themes?
Do you have some WordPress knowledge and you want to expand your knowledge and get deeper into the word of WordPress and be able to sell themes online?
Then this course is for you!
This course is the essence of my experience with submitting themes to themeforest. In these lectures, I will share everything I know about creating WordPress themes. After completing the course you will be able to create themes coded to match WordPress's and Themeforest's coding and security standards. You should have no problems passing themeforest's code review as long as you have a great design!
This is not a Design/CSS/HTML/PHP course!!! If you are looking for that, I am sure you will find a lot of other resources. In this course I will just focus on WordPress functionality. I will load some prewritten basic CSS I did for the theme that we will create, the goal is just to create WordPress functionality and understand WordPress in more depth. I will however teach you how to organize your CSS, compile SASS and minify your files automatically. Also you should have some basic PHP knowledge. I will not teach you PHP from scratch here, so if you are interested in taking this course, I suggest taking a beginners PHP course first!
Who is the target audience?
Developers who have HTML/CSS/JS/PHP knowledge and wish to create professional WordPress themes from scratch.
WordPress developers who want to take their WordPress knowledge to the next level.
WordPress developers looking to create premium themes that get approved on websites like themeforest.
Anyone interested in learning advanced WordPress and Javascript concepts.
#wordpresstheme #createpremiumwordpresstheme #buildwordpressthemes