Tagged: x
-
AuthorPosts
-
October 4, 2016 at 3:33 pm #1202516
logogloParticipantHi 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.
October 4, 2016 at 4:42 pm #1202569
Prasant RaiModeratorHello 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.
October 5, 2016 at 11:33 am #1203673
logogloParticipantI have various websites that need the same treatment, but we can start with http://www.d-drones.com/
October 5, 2016 at 11:58 am #1203697
ThaiModeratorHi 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 🙂
October 5, 2016 at 1:28 pm #1203820
logogloParticipantOk, 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.
October 5, 2016 at 2:24 pm #1203906
JoaoModeratorHi 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
October 5, 2016 at 3:32 pm #1203997
logogloParticipantThat 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?
October 5, 2016 at 7:03 pm #1204194
FriechModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1202516 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
