Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1165371
    databell
    Participant

    I’d like to be able to have a full width image above the navbar, just like you have on the X theme’s homepage. Looks like it’s just a div with a background image and then a image centered inside of it. How did you create that?

    #1165816
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    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.

    Once your child theme is ready, please insert this code in your child theme’s functions.php

    // Add a custom image above the navbar
    // =============================================================================
    function add_custom_image(){ ?>
    
      <div class="custom-image-container">
          <!-- our custom header codes here -->
          <img src="http://placehold.it/1200x900" alt="My banner">
      </div>
    
    <?php }
    add_action('x_before_view_global__navbar', 'add_custom_image');
    // =============================================================================

    Please let us know if this works out for you.

    #1166038
    databell
    Participant

    Actually I found another way to do it by copying over the wp-header.php into the icon folder for the framework. Sorry about that. This is a very different system than I’m typically used with WP themes.

    #1166189
    Christian
    Moderator

    Glad you’ve figured a solution.

  • <script> jQuery(function($){ $("#no-reply-1165371 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>