• I’m using Corpobox, however it signiture home tagline is not showing, left a big space between menu and content, anyone know why is it? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alexahunter

    (@alexahunter)

    Thread Starter alexahunter

    (@alexahunter)

    /*———————————————————–
    * Home Tagline section
    *———————————————————–*/
    $wp_customize->add_section(
    ‘corpobox_home_tagline’,
    array(
    ‘title’ => __( ‘Home Tagline’, ‘corpobox’ ),
    ‘priority’ => 300
    )
    );
    $wp_customize->add_setting(
    ‘home_tagline’,
    array(
    ‘default’ => ‘<h1>corpobox</h1>’,
    ‘sanitize_callback’ => ‘corpobox_sanitize_textarea’,
    ‘transport’ => ‘postMessage’
    )
    );
    $wp_customize->add_setting(
    ‘home_tagline_bgcolor’,
    array(
    ‘default’ => ‘#f16272’,
    ‘sanitize_callback’ => ‘sanitize_hex_color’,
    ‘transport’ => ‘postMessage’
    )
    );
    $wp_customize->add_setting(
    ‘home_tagline_bgimg’,
    array(
    ‘default’ => get_template_directory_uri().’/img/tagline.jpg’,
    ‘sanitize_callback’ => ‘esc_url_raw’
    )
    );

    //Home TagLine CONTROL
    $wp_customize->add_control( new corpobox_Textarea_Control( $wp_customize, ‘home_tagline’, array(
    ‘label’ => __( ‘Tagline Text’, ‘corpobox’ ),
    ‘section’ => ‘corpobox_home_tagline’,
    ‘settings’ => ‘home_tagline’,
    //’priority’ => 27,
    ‘type’ => ‘text’,
    ) ) );
    $wp_customize->add_control(
    new WP_Customize_Color_Control(
    $wp_customize,
    ‘home_tagline_bgcolor’,
    array(
    ‘label’ => __( ‘Background Color’, ‘corpobox’ ),
    ‘section’ => ‘corpobox_home_tagline’,
    ‘settings’ => ‘home_tagline_bgcolor’
    )
    )
    );
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ‘home_tagline_bgimg’, array(
    ‘label’ => __( ‘Background Image’, ‘corpobox’ ),
    ‘section’ => ‘corpobox_home_tagline’,
    ‘settings’ => ‘home_tagline_bgimg’
    ) ) );

    show the content of the page.php e front-page.php
    (you can use gist ou pastebin)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: Corpobox] home tagline doesn't show’ is closed to new replies.