Make WordPress Themes


Ignore:
Timestamp:
07/10/2024 09:52:48 AM (17 months ago)
Author:
themedropbox
Message:

New version of BlogBD - 1.1

Location:
blogbd/1.1
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • blogbd/1.1/inc/customizer.php

    r230801 r234536  
    2828
    2929    $wp_customize->add_control( new WP_Customize_Color_control( $wp_customize, 'header_background_color', array(
    30         'label'    => __( 'Header Background Color', 'blogbd' ),
     30        'label'    => __( 'Header Background', 'blogbd' ),
    3131        'section'  => 'colors',
    3232        'settings' => 'header_background_color',
     
    4141    ) );
    4242
    43     $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogbd_link_color_control', array(
     43    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogbd_link_color', array(
    4444        'label'      => __( 'Link Color', 'blogbd' ),
    4545        'section'    => 'colors',
     
    9595    ) );
    9696
     97
     98
     99    // Add a new section for the footer text
     100    $wp_customize->add_section( 'blogbd_footer_section', array(
     101        'title'       => __( 'Footer Text', 'blogbd' ),
     102        'priority'    => 130,
     103    ) );
     104
     105    // Add the setting for the footer text
     106    $wp_customize->add_setting( 'blogbd_footer_text', array(
     107        'default'           => __( 'BlogBD WordPress Theme', 'blogbd' ),
     108        'sanitize_callback' => 'sanitize_text_field',
     109    ) );
     110
     111    // Add the control for the footer text
     112    $wp_customize->add_control( 'blogbd_footer_text', array(
     113        'label'    => __( 'Footer Text', 'blogbd' ),
     114        'section'  => 'blogbd_footer_section',
     115        'type'     => 'text',
     116    ) );
     117
     118
     119
     120
    97121}
    98122
     
    104128        a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; }
    105129        #secondary.widget-area ul li a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; }
    106         body { color: <?php echo esc_attr( get_theme_mod( 'blogbd_text_color', '#333333' ) ); ?>; }
    107         .site-header a { color: #<?php echo esc_attr( get_header_textcolor() ); ?>; }
    108         .site-header {
    109             background-color: <?php echo esc_attr( get_theme_mod( 'header_background_color', '#ffffff' ) ); ?>;
     130        body {
     131            color: <?php echo esc_attr( get_theme_mod( 'blogbd_text_color', '#333333' ) ); ?>;
     132        }
     133        header.site-header a { color: #<?php echo esc_attr( get_header_textcolor() ); ?>; }
     134        header.site-header {
     135            background-color: <?php echo esc_attr( get_theme_mod( 'header_background_color', '#0073aa' ) ); ?>;
    110136            color: #<?php echo esc_attr( get_header_textcolor() ); ?>;
    111137        }
Note: See TracChangeset for help on using the changeset viewer.