How to add a title and a subtitle in the Clients Bar section in Hestia?
By default, the Clients Bar section only displays the clients' logos and the links to their pages. However, you can insert a title and tagline for this section and obtain an appearance like in the screenshot below:
Hestia Pro |
Hestia Lite |
Hestia Pro
If you are using the Hestia Pro theme, it can be done easily without editing the code. Follow these steps:
- 1
-
Go to Dashboard > Appearance > Hestia Pro Hooks.
- 2
-
Search for the Cliens Bar section.
- 3
-
Inside the Before Clients Bar Section Content hook field paste this code snippet:
<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
-
Once you have customized the title and tagline, click on the Save Hooks button.
Hestia Lite
- 1
-
First and most importantly, make sure you are using a child theme.
- 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; }
- 4
-
Replace the default text with the desired title and subtitle in the Clients Bar section.