Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1080331
    king88sley
    Participant

    Hi, I would like to make only my Slider Settings above Masterhead full width and the rest of the the page to be boxed and not full-width. How do i accomplished that properly?

    Thanks

    Kingsley

    #1080351
    Thai
    Moderator

    Hi There,

    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.

    #1080429
    king88sley
    Participant
    This reply has been marked as private.
    #1080739
    Rue Nel
    Moderator

    Hello Kingsley,

    Thanks for providing the information. What you are trying to accomplish requires a template customization, we would like to suggest that you use 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.

    Once you have your child theme active and ready, we have to remove the slider from the box. We need to customize the template. To do that, please follow the following 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/ETHOS/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Ethos.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <header class="<?php x_masthead_class(); ?>" role="banner">
        <?php x_get_view( 'ethos', '_post', 'carousel' ); ?>
        <?php x_get_view( 'global', '_topbar' ); ?>
        <?php x_get_view( 'global', '_navbar' ); ?>
        <?php x_get_view( 'ethos', '_breadcrumbs' ); ?>
      </header>
    
      <?php x_get_view( 'global', '_slider-below' ); ?>
      <?php x_get_view( 'ethos', '_landmark-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/views/ethos/

    In the code above, we have removed the slider. We will then add it back but this time outside of the boxed. Please insert this following code in your child theme’s functions.php file

    // Add Slider Settings above masthead outside of the boxed layout
    // =============================================================================
    
    function custom_slider_above_masthead($content){
    	x_get_view( 'global', '_slider-above' );
    }
    add_action( 'x_before_site_begin', 'custom_slider_above_masthead' );
    // =============================================================================

    After making sure that you are all set, you still have to select from the customizer that you will have a boxed layout globally. Please go to your customizer, Appearance > Customize > Custom > Layout & Design and set the Content layout as boxed.

    Hope this helps. Please let me know how it goes.

    #1082081
    king88sley
    Participant

    Hi Rue Nel,

    I have tried as you asked me to do. But still no changes done on my apart from the site is boxed and the slider above menu is also boxed, and my logo is kind of pushing the menu down. Please see yourself.

    Thanks

    You are free to make changes.

    #1082632
    Friech
    Moderator

    Hi There,

    Please provide us FTP credentials in private reply, so we can take a closer look.

    Thanks.

    #1082858
    king88sley
    Participant
    This reply has been marked as private.
    #1083047
    king88sley
    Participant

    Hi Friech,
    I have manage to do some changes myself. Please take a look. Above and Below Slider Settings i have two sliders. 🙂

    Please assist on this.

    Thanks

    Greetings from Berlin
    Kingsley

    #1083299
    Jade
    Moderator

    Hi Kingsley,

    Kindly double check the logins you have provided because they seem to be incorrect.

    Thank you.

    #1083466
    king88sley
    Participant
    This reply has been marked as private.
    #1084339
    Paul R
    Moderator

    Hi Kingsley,

    It looks like you have provided the wrong ftp login.

    I tried to edit some files but it’s not reflecting in http://re-nergy.com/

    Kindly check again and let us know.

    Thanks

    #1084467
    king88sley
    Participant
    This reply has been marked as private.
    #1084478
    king88sley
    Participant
    This reply has been marked as private.
    #1084700
    Paul R
    Moderator

    Hi,

    Sorry for the confusion.

    Yes, the ftp login is correct and I was able to login too but it seems that is for another site?

    I tried editing a file, for example the license.txt file but the changes are not reflecting here http://re-nergy.com/license.txt

    Thanks

    #1084730
    king88sley
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1080331 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>