Fixed an issue where text in the HERO section could not be changed.
-
inc/customize-configs/section-hero.php
BEFORE
// For Hero layout ------------------------ // Large Text $wp_customize->add_setting( 'onepress_hcl1_largetext', array( 'sanitize_callback' => 'onepress_sanitize_text', 'mod' => 'html', 'default' => wp_kses_post( __( 'We are <span class="js-rotating">OnePress | One Page | Responsive | Perfection</span>', 'onepress') ), ) ); $wp_customize->add_control( new OnePress_Editor_Custom_Control( $wp_customize, 'onepress_hcl1_largetext', array( 'label' => esc_html__('Large Text', 'onepress'), 'section' => 'onepress_hero_content_layout1', 'description' => esc_html__('Text Rotating Guide: Put your rotate texts separate by "|" into <span class="js-rotating">...</span>, go to Customizer -> Theme Options -> Section: Hero -> Hero Settings to control rotate animation.', 'onepress'), ) ));
AFTER
// For Hero layout ------------------------ // Large Text $wp_customize->add_setting( 'onepress_hcl1_largetext', array( 'sanitize_callback' => 'onepress_sanitize_text', 'default' => wp_kses_post('We are <span class="js-rotating">OnePress | One Page | Responsive | Perfection</span>', 'onepress'), ) ); $wp_customize->add_control( new One_Press_Textarea_Custom_Control( $wp_customize, 'onepress_hcl1_largetext', array( 'label' => esc_html__('Large Text', 'onepress'), 'section' => 'onepress_hero_content_layout1', 'description' => esc_html__('Text Rotating Guide: Put your rotate texts separate by "|" into <span class="js-rotating">...</span>, go to Customizer->Site Option->Animate to control rotate animation.', 'onepress'), ) ));
- The topic ‘Fixed an issue where text in the HERO section could not be changed.’ is closed to new replies.