Answers for "wordpress customizer"

PHP
1

add customizer in wordpress

function your_php_code( $wp_customize ) {
    $wp_customize->add_section( 'id_of_section', array(
        'property1' => 'value1',
        'property2' => 'value2',
    ) );
 
    $wp_customize->add_setting( 'name_of_option', array(
        'property1' => 'value1',
        'property2' => 'value2',
    ) );
 
    $wp_customize->add_control( 'name_of_option', array(
        'section' => 'id_of_section',
        'property2' => 'value2',
    ) );
}
add_action( 'customize_register', 'your_php_code' );
Posted by: Guest on June-19-2021
0

wordpress custom theme

//créer wp-content/themes/myThemeName/style.css
/*
Theme Name: Capitaine
Theme URI: https://capitainewp.io
Author: Maxime BERNARD-JACQUET
Author URI: https://dysign.fr
Description: Mon premier thème !
Requires at least: WordPress 5.0
Version: 1.0
*/

//créer wp-content/themes/myThemeName/index.php
<?php
	$echo = "content"
?>
<!DOCTYPE html>
<html>
<head></head>
<body>
	<h1>Coucou ! <?php echo$echo ?></h1>
</body>
</html>


//That's all, go to theme in /wp-admin web interface, 
//and select "Capitaine" theme in 'Appearence' dashboard menu to activate your brand new wordpress theme
Posted by: Guest on October-31-2020

Code answers related to "wordpress customizer"

Browse Popular Code Answers by Language