Remote support in header

Hello Support,

On our old Theme X website our customers have a Remote Support option available. It lives on a toolbar on the top and links our remote control system with a user. Iโ€™m trying to add the same feature to our new website but no luck.

Would you be able to advice how to add such thing to the widget we want to use for this purpose?

Thank you very much

Val

Hi Val,

Thanks for writing in! You can enable Topbar by head over to X -> Theme Options -> Header area. Then you can add content to your Topbar Content area.

Hope that helps.

Hi Support,

I tried the suggestion and it works perfectly! Thank you. However, it places the features under the video of Integrity 1. Is there a way to add it to the widget (Header 1) hiding under the + icon, top right?

Thank you very much

Val

Hello @Jay_b,

Thanks for asking. :slight_smile:

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.

  1. Download Child theme from here: https://theme.co/apex/child-themes
  2. 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.

Morning Prasant,

Excellent, thank you very much for the info. I will check it out.

Val

Youโ€™re welcome. Glad we could help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.