About This Ticket

How do I change the latest news tab title?

by CreativeTweed / September 13, 2017, 8:28 pm

Hi there, how do I change the titles for "World News" and "Club news"?

Staff

These texts are hardcoded in the plugin. You can change those texts directly in the code. Find the /wp-content/plugins/soccer_vc_extensions folder and find the following code in front_end-latest_news.php file.

if ( is_object( $category_1 ) ) {
       $output .= '<li><a href="#' . esc_attr( $category_1->slug . '_' . $category_1_hash ) . '"  role="tab" data-toggle="tab" id="world_news_button">' . esc_html__( 'World News', 'soccerclub' ) . '</a></li>';
}

if ( is_object( $category_2 ) ) {
        $output .= '<li class="active"><a href="#' . esc_attr( $category_2->slug . '_' . $category_2_hash ) . '"  role="tab" data-toggle="tab" id="club_news_button">' . esc_html__( 'Club News', 'soccerclub' ) . '</a></li>';
}