Global Blocks as Header

Hi,

I’ve made this mock-up for a customer:

http://beachtobar-boutique.stackstaging.com/

Is there any way, perhaps using Global Blocks, to duplicate the header in place of the default stack you can find on other pages?

If so, is this just customising the child theme/functions.php?

Thanks.

Tyler

Hello Tyler,

Thanks for writing in!

With X theme, you cannot override or replace the default header. It will need a complete custom development to be able to do that. Regretfully custom development is beyond the scope of our support.

I would recommend that you use the Blank - No Container | No Header, Footer page template. You should be able to insert your global block at the very first section of the page. The default header may still appear in some pages that is not using the page template though. For more details about the different page templates in the theme, please check this out:

Regards.

Hi,

So to clarify: with the child theme via FTP, you can’t disable the default navigation and just add in the global block instead?

This post suggests that it may be possible: https://theme.co/apex/forum/t/to-make-global-block-as-stiky-header-contents/31953/2

Thanks.

Hello @tylerpittaway,

The given thread is applicable to Pro theme. With X theme, you can only replace the default header with a custom development. To get you started, assuming that you have your child theme active and ready, please follow these steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file

<?php

// =============================================================================
// VIEWS/RENEW/WP-HEADER.PHP
// -----------------------------------------------------------------------------
// Header output for Renew.
// =============================================================================

?>

<?php x_get_view( 'global', '_header' ); ?>

  <header class="<?php x_masthead_class(); ?>" role="banner">
    
    <?php echo do_shortcode('[cs_gb id=215]'); ?>

  </header>

3] Save the file named as wp-header.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/legacy/cranium/headers/views/renew

Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.

Regards.

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