Hello @Jay_b,
Thanks for asking.
Displaying Topbar into widget bar will require changes in theme files. However, please note that it falls outside the scope of support we can offer. That being said I can give you some pointer that you can use to make the necessary changes. Before that please setup child theme. I am sharing resources that you can use to download and setup child theme.
- Download Child theme from here: https://theme.co/apex/child-themes
- Child theme setup guide:
3. For best practices, take a look at following resource:
Now, copy content.php file from /wp-content/themes/x/framework/functions/frontend/ to /wp-content/themes/x-child/framework/functions/frontend/. Please note that you will have to create necessary child folders. After that add following line of code after following code <div class="x-container max width">
at line number 261:
<?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?>
<div class="x-topbar">
<div class="x-topbar-inner x-container max width">
<?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?>
<p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p>
<?php endif; ?>
<?php x_social_global(); ?>
</div>
</div>
<?php endif; ?>
If you would like to learn PHP then you can take a look at following resources:
http://php.net/manual/en/tutorial.php
https://www.tutorialrepublic.com/php-tutorial/
Thanks.