Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1202516
    logoglo
    Participant

    Hi there, I was wondering if this is possible.

    I want the footer content (eg. copyright 2016 | site design by…) to ONLY appear on the homepage, not to appear on the other pages, to avoid site wide link repetition *this is not good in the eyes of google)

    Thanks.

    Gary.

    #1202569
    Prasant Rai
    Moderator

    Hello Gary,

    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.

    Thanks.

    #1203673
    logoglo
    Participant

    I have various websites that need the same treatment, but we can start with http://www.d-drones.com/

    #1203697
    Thai
    Moderator

    Hi Gary,

    To achieve that, please add the following CSS under Customizer > Custom > Global CSS:

    body:not(.home) footer.x-colophon.bottom {
        display: none;
    }

    Hope it helps 🙂

    #1203820
    logoglo
    Participant

    Ok, that is getting rid of the ENTIRE footer on other pages, I still want the footer, and the social media icons etc, its the content I want to disappear, also, is this hiding it or getting rid of all together? remember, google doesn’t like hidden content.

    #1203906
    Joao
    Moderator

    Hi There,

    To hide just the content you can use the code below.

    I need to disagree with you with the fact that google does not like hidden, content, this is a really common practice, what google does not like is if you are using hidden content in a smart way for example, to use a keyword more times to make your home page more significant for a certain term, but that is not the case and google won´t penalize you for that.

    Please add the following code to Appereance > Customizer > Custom > CSS

    body:not(.home) .x-colophon.bottom .x-colophon-content {
        display: none;
    }

    Let us know if you have further questions,

    Joao

    #1203997
    logoglo
    Participant

    That worked perfectly. Thanks.

    BUT

    Google will still crawl the hidden content, and thus the hidden link. How do I remove it, rather than hide it?

    #1204194
    Friech
    Moderator

    Hi There,

    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.

    Then on your child theme navigate to this \x-child\framework\views\ethos\ directory. In there create a file named wp-footer.php and paste the code below on it.

    <?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 ( x_get_option( 'x_footer_bottom_display' ) == '1' ) : ?>
    
        <footer class="x-colophon bottom" role="contentinfo">
          <div class="x-container max width">
    
            <?php if ( x_get_option( 'x_footer_content_display' ) == '1' && is_front_page() ) : ?>
              <div class="x-colophon-content">
                <?php echo do_shortcode( x_get_option( 'x_footer_content' ) ); ?>
              </div>
            <?php endif; ?>
    
            <?php if ( x_get_option( 'x_footer_menu_display' ) == '1' ) : ?>
              <?php x_get_view( 'global', '_nav', 'footer' ); ?>
            <?php endif; ?>
    
            <?php if ( x_get_option( 'x_footer_social_display' ) == '1' ) : ?>
              <?php x_social_global(); ?>
            <?php endif; ?>
    
          </div>
        </footer>
    
      <?php endif; ?>
    
    <?php x_get_view( 'global', '_footer' ); ?>

    Keep in mind that this code is tested on the latest version of x|theme. If this does not work on your version, please provide us login credentials (admin and FTP) in private reply so we can take a closer look.

    Hope it helps, Cheers!

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