Welcome! To use this support forum, please Login or Join Today!

   

Add header widget

{name}
Rank

Total Posts: 8

Joined 2016-05-13

PM

 

Hello,

Great theme.

I want to add a extra header widget. I would like to place some call to action or phone/mail icons.

How can i do that the best way?

Thank you!

{name}
Rank

Total Posts: 8

Joined 2016-05-13

PM

 

Hello,

Can somebody post a reaction?

Thanks!

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

The simplest method would be to override the site_header() function in your child theme and customize the HTML like so:

function site_header() {
?>
        <header class="site-header" id="header">
            <div class="container outer-wrap">
                <div id="toggle">
                    <a href="#"><i class="fa fa-bars"></i></a>
                </div>
                <!-- begin extra header content -->
                <div class="header_extra">
                    <i class="fa fa-envelope"></i> Call to Action
                </div>
                <!-- end extra header content -->
                <?php do_action('smpl_logo'); ?>
                <?php do_action('smpl_main_nav'); ?>
            </div>
        </header>
<?php }
add_action('smpl_header','site_header',1);

Then, you’d obviously need to customize it with some CSS like so:

.header_extra {
    float: right;
}
{name}
Rank

Total Posts: 8

Joined 2016-05-13

PM

 

Thank you.

I take a look at this. When i have questions i let you know.