Create blog section wordpress hosting
Description
Adds a new section to the Theme Customization admin screen. Sections are convenient ways to group controls logically.
This is a method of the WP_Customize_Manager class and can only be accessed through the $wp_customize object within the customize_register action hook.
Parameters
$id (string ) (required ) A unique slug-like string to use as an id. Default: None$args (array ) (required ) An associative array containing arguments for the control. Default: None
title The visible name of a controller section. priority This controls the order in which this section appears in the Theme Customizer sidebar. description This optional argument can add additional descriptive text to the section. active_callback This optional argument can show or hide section based on currently viewed page. Example: 'active_callback' => 'is_front_page'.
Default Sections
WordPress does include a few built-in sections. If you want to use any of the existing, built-in ones, you don't need to declare them with add_section(). Instead, refer to them directly. The following sections are built-in.
- themes -
- title_tagline - Site Identity
- colors - Colors
- header_image - Header Image and Site Icon
- background_image - Background Image
- static_front_page - Static Front Page (shown only if there is at least 1 page)
Adding a theme section (within the 'customize_register' action) might look like this: