Vote count:
0
I'm understanding the Wordpress API Customization (Thank god!) but I have a little question... I want the Wordpress Editor to display two functions (for example, I want it to show 'Edit Text Color' and then the color palette. And RIGHT NEXT TO IT, I want another color palette for another function). I mean, I don't want another 'drop down menu' on the Wordpress Customizer for just one single color. Do you understand what I mean?
I tried to do that, with this code, but it doesn't work. What am I doing wrong?
//Menu Links
$wp_customize->add_setting( 'test_menu_links_one, test_menu_links_two' , array(
'default' => '#fff',
));
$wp_customize->add_section( 'test_menu_link_one, test_menu_link_two' , array(
'title' => __('Menu Links','my_test'),
'description' => 'Modify the theme Images and Logotypes'
));
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'test_menu_links_one, test_menu_links_two', array(
'label' => __( 'Link one', 'mytheme' ),
'section' => 'test_menu_link_one, test_menu_link_two',
'settings' => 'test_menu_links_one, test_menu_links_two'
)));
This is the HTML code by the way.
<a href="<?php echo get_theme_mod('test_menu_links_one'); ?>">Home</a>
<a href="<?php echo get_theme_mod('test_menu_links_two'); ?>">Test</a>
asked 1 min ago
Wordpress API Customization functions
Aucun commentaire:
Enregistrer un commentaire