How to add a title and a subtitle in the Clients Bar section in Hestia

How it will look after the change?

How to add heading and sub-heading to Clients Bar?

Hestia Pro:

If you are using Hestia Pro theme, it can be done easily without editing the code. Follow these steps:

  1. Go to WP-admin > Appearance > Hestia Pro Hooks:
  2. Inside, "Before Clients Bar Section Content" hook editor add the HTML of Heading and subtitle.
  3. This is the code:
<div class="row">
  <div class="col-md-8 col-md-offset-2 text-center">
    <h2 class="hestia-title">Test title</h2>
    <h5 class="description">Test subtitle</h5>
  </div>
</div>


4. After that click on "Save Hooks" button.

Hestia Lite:

1. First and most important, make sure you are using a child theme. Follow this doc to create a child theme for Hestia.

2. In the child theme's functions.php file add this code:

add_action( 'hestia_clients_bar_section_content_hook', 'child_add_title_in_the_clients_bar_section' );
function child_add_title_in_the_clients_bar_section() {
    $output = '';
    $output .= '<div class="row">';
		$output .= '<div class="col-md-8 col-md-offset-2 text-center">';
		    $output .= '<h2 class="hestia-title">Test title</h2>';
            $output .= '<h5 class="description">Test subtitle</h5>';
        $output .= '</div>';
    $output .= '</div>';

    echo $output;
}

3. Now just replace the default texts with what you want to have as a title and subtitle in the Clients Bar section.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.