Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #263138
    Alex
    Participant

    Is it possible to do something like this with the post carousel on my home page only?
    http://prntscr.com/70ag79

    #263362
    Prasant Rai
    Moderator

    Hello Alex,

    Thanks for writing in!

    Kindly walk-through the following thread to implement post carousel in footer section of the page:

    https://theme.co/x/member/forums/topic/post-carousel-in-widget-footer-area/#post-135095

    Hope that helps.

    Thanks.

    #265211
    Alex
    Participant

    How can I implement this change to only be on the home page? all other pages to be as they are now.

    #265322
    Darshana
    Moderator

    Hi there,

    Please find the following line in your wp-footer.php file.

    <?php x_get_view( 'ethos', '_post', 'carousel' ); ?>

    Then replace it with the following code.

    
    <?php
    if ( is_home() ) :
      x_get_view( 'ethos', '_post', 'carousel' );
    endif;
    ?>
    

    Hope that helps.

    #265500
    Alex
    Participant

    I’m using a child theme. I searched for a related article on how to set up a “child” wp-footer.php file but couldnt find anything. I just copied the footer.php folder into my child theme. Is this the correct way of doing it? Also is the wp-footer.php and footer.php the same? I cant seem to find a wp-footer.

    #265633
    Paul R
    Moderator

    Hi Alex,

    Sorry for the confusion.

    Please create the file wp-footer.php in wp-content/themes/x-child/framework/views/ethos
    and copy the code below into that file.

    
    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/WP-FOOTER.PHP
    // -----------------------------------------------------------------------------
    // Footer output for Ethos.
    // =============================================================================
    
    ?>
    
      <?php x_get_view( 'global', '_header', 'widget-areas' ); ?>
      <?php x_get_view( 'global', '_footer', 'scroll-top' ); ?>
      <?php x_get_view( 'global', '_footer', 'widget-areas' ); ?>
      <?php if(is_front_page()):?>
      <?php x_get_view( 'ethos', '_post', 'carousel' ); ?>
      <?php endif; ?>
      <?php if ( x_get_option( 'x_footer_bottom_display', '1' ) == '1' ) : ?>
    
        <footer class="x-colophon bottom" role="contentinfo">
          <div class="x-container max width">
    
            <?php if ( x_get_option( 'x_footer_content_display', '1' ) == '1' ) : ?>
              <div class="x-colophon-content">
                <?php echo x_get_option( 'x_footer_content' ); ?>
              </div>
            <?php endif; ?>
    
            <?php if ( x_get_option( 'x_footer_menu_display', '1' ) == '1' ) : ?>
              <?php x_get_view( 'global', '_nav', 'footer' ); ?>
            <?php endif; ?>
    
            <?php if ( x_get_option( 'x_footer_social_display', '1' ) == '1' ) : ?>
              <?php x_social_global(); ?>
            <?php endif; ?>
    
          </div>
        </footer>
    
      <?php endif; ?>
    
    <?php x_get_view( 'global', '_footer' ); ?>
    

    Hope that helps.

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