Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #236288

    mitchelljk
    Participant

    I’ve purchased a custom header and want to turn off the theme header. Currently, both are displaying stacked on top of each other. How do I disable the theme header?

    #236375

    Paul R
    Moderator

    Hi,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then copy wp-content/themes/x/framework/views/{STACK}/wp-header.php into your child theme directory
    wp-content/themes/x-child/framework/views/{STACK}/

    Open the file you have copied in your child theme and delete the code
    <?php x_get_view( ‘global’, ‘_navbar’ ); ?>
    and save.

    Hope that helps.

    #236984

    mitchelljk
    Participant

    Thanks. I have set up a child theme according to the video and made a template change to the child theme based on customization best practices.

    However, when the child theme is active, elements on all pages appear to display incorrectly, as if the shortcodes plugin has been disabled for example. Is there something I am missing here?

    #236988

    Christopher
    Moderator

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #237011

    mitchelljk
    Participant
    #237014

    Christopher
    Moderator

    Hi there,

    You need to use compatible version of X and x shortcode, Currently you are using old versions, Please update both and this should solve your issue.

    Thanks.

    #237030

    pixelperfect47
    Participant

    Thank you, I’ve updated it and the layout now appears correctly, but certain elements on the page are not visible (see the white spaces where there should be content within the container).

    So I have a couple of questions,
    1. There is still elements not being displayed despite all plugins and the theme being up to date.
    2. Where would I paste the code from the custom header (<?php echo do_shortcode( “[hmenu id=1]” ); ?>) to modify the header? I am able to make it appear but it is appearing stacked top of the main hero image and not over-laying it (despite configuring the menu settings to display overlayed).

    #237033

    Christopher
    Moderator

    Hi there,

    #1 Please disable all 3rd party plugins except those come with X, Also remove any custom JS and test if it helps or not.

    #2 Please add the following CSS under Customize -> Custom -> CSS :

    .home div#x-content-band-1 {
      margin-top: -80px !important;
    }

    Hope it helps.