Tagged: x
-
AuthorPosts
-
March 31, 2016 at 7:11 am #860715
LutslanaParticipantDear Themeco Team,
I would like to remove from the front- and the backend the Date and Author information of all kinds (pictures, posts etc.). Therefore, I have found many threads and many different ways. Now, I am completely confused about.
I think that this is one of the highly demanded matters that should be integrated into the theme as an easy to use on-off-button.
What is the easyest and most reliable way to remove date and author stamp from my site, so nor the visitor or the google bot can read it.
Thank you!
March 31, 2016 at 7:12 am #860717
LutslanaParticipantThis reply has been marked as private.March 31, 2016 at 12:43 pm #861141
RupokMemberHi there,
Thanks for writing in! If you want to remove these entirely then you need to use Child Theme and overwrite the files. It would be the best way to remove the information entirely.
Cheers!
April 1, 2016 at 4:53 am #862333
LutslanaParticipantI do already have the child theme. Please tell me what exactly I have to remove.
Thank you!April 1, 2016 at 1:22 pm #862897
DarshanaModeratorHi there,
Can you try switching off Post Meta under Appearance -> Customize -> Blog and Appearance -> Customize -> Portfolio sections.
Hope that helps.
April 2, 2016 at 4:33 am #863640
LutslanaParticipantHi Darshana,
both are turned off. But the data and author stamp is still there.
April 2, 2016 at 8:51 pm #864204
Rue NelModeratorHello There,
To get rid of the author and date in your pages, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.x-recent-posts .x-recent-posts-date, .site .p-meta { display: none; }Hope this would help.
April 7, 2016 at 4:16 am #870826
LutslanaParticipantDear Rue,
I would like to remove it completely. So it does not only not gettind displayed (like the css solution) but also does not exist in the code. So for example the google bot can not read it out. Do you know a solution for that?
April 7, 2016 at 10:56 am #871418
RupokMemberHi there,
Thanks for updating. You can turn off Post Meta from Customize > Blog > Content > Post Meta – http://prntscr.com/apbln1
Certainly it won’t show post meta if you turn off from here. Same goes for the Portfolio that already mentioned (
#862897).If you still have a look into the original code on theme then go to x/framework/functions/integrity.php for Integrity stack. You can use your CHild Theme’s functions.php to filter this if needed. As the settings already exists on the Customizer so I don’t think you need any piece of code to hide this completely.
Hope this helps.
Cheers!
April 8, 2016 at 8:09 am #872757
LutslanaParticipantDear Rupok,
Like I said before, it is already turned off.
http://www.cha.de/wp-content/uploads/2016/04/08-04-_2016_15-02-35.jpgPlease check it out by yourself on http://www.cha.de/knowledge-base/
(The login-data I posted before.)Kind regards!
April 8, 2016 at 9:01 pm #873593
RadModeratorHi there,
Unfortunately, the provided login is not correct.
For the meantime, if you wish to effectively remove author and dates permanently. Then please add this code to your child theme’s functions.php
function x_integrity_entry_meta() { // // Author. // $author = ''; // // Date. // $date = ''; // // Categories. // if ( get_post_type() == 'x-portfolio' ) { if ( has_term( '', 'portfolio-category', NULL ) ) { $categories = get_the_terms( get_the_ID(), 'portfolio-category' ); $separator = ', '; $categories_output = ''; foreach ( $categories as $category ) { $categories_output .= '<a href="' . get_term_link( $category->slug, 'portfolio-category' ) . '" title="' . esc_attr( sprintf( __( "View all posts in: “%s”", '__x__' ), $category->name ) ) . '"><i class="x-icon-bookmark" data-x-icon=""></i> ' . $category->name . '</a>' . $separator; } $categories_list = sprintf( '<span>%s</span>', trim( $categories_output, $separator ) ); } else { $categories_list = ''; } } else { $categories = get_the_category(); $separator = ', '; $categories_output = ''; foreach ( $categories as $category ) { $categories_output .= '<a href="' . get_category_link( $category->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in: “%s”", '__x__' ), $category->name ) ) . '"><i class="x-icon-bookmark" data-x-icon=""></i> ' . $category->name . '</a>' . $separator; } $categories_list = sprintf( '<span>%s</span>', trim( $categories_output, $separator ) ); } // // Comments link. // if ( comments_open() ) { $title = apply_filters( 'x_entry_meta_comments_title', get_the_title() ); $link = apply_filters( 'x_entry_meta_comments_link', get_comments_link() ); $number = apply_filters( 'x_entry_meta_comments_number', get_comments_number() ); if ( $number == 0 ) { $text = __( 'Leave a Comment' , '__x__' ); } else if ( $number == 1 ) { $text = $number . ' ' . __( 'Comment' , '__x__' ); } else { $text = $number . ' ' . __( 'Comments' , '__x__' ); } $comments = sprintf( '<span><a href="%1$s" title="%2$s" class="meta-comments"><i class="x-icon-comments" data-x-icon=""></i> %3$s</a></span>', esc_url( $link ), esc_attr( sprintf( __( 'Leave a comment on: “%s”', '__x__' ), $title ) ), $text ); } else { $comments = ''; } // // Output. // if ( x_does_not_need_entry_meta() ) { return; } else { printf( '<p class="p-meta">%1$s%2$s%3$s%4$s</p>', $author, $date, $categories_list, $comments ); } }Then please install the cornerstone plugin, or else, your site will not function correctly.
Thanks!
April 13, 2016 at 7:01 am #879868
LutslanaParticipantHi Rad,
thank you for the code!
Everything is done. Cornerstone is installed and the code is implemented in the child theme’s functions.php.The author and the date are still there. Please check the following link:
http://www.cha.de/knowledge-base/In the next post I will post my login data so you can check the backend.
Thanks!
April 13, 2016 at 7:02 am #879869
LutslanaParticipantThis reply has been marked as private.April 13, 2016 at 12:10 pm #880417
ThaiModeratorHi There,
Could you please double check on your admin account?
I was unable to login.
Thank you.
April 14, 2016 at 3:26 am #881749
LutslanaParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-860715 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
