Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #860715
    Lutslana
    Participant

    Dear 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!

    #860717
    Lutslana
    Participant
    This reply has been marked as private.
    #861141
    Rupok
    Member

    Hi 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!

    #862333
    Lutslana
    Participant

    I do already have the child theme. Please tell me what exactly I have to remove.
    Thank you!

    #862897
    Darshana
    Moderator

    Hi there,

    Can you try switching off Post Meta under Appearance -> Customize -> Blog and Appearance -> Customize -> Portfolio sections.

    Hope that helps.

    #863640
    Lutslana
    Participant

    Hi Darshana,

    both are turned off. But the data and author stamp is still there.

    #864204
    Rue Nel
    Moderator

    Hello 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.

    #870826
    Lutslana
    Participant

    Dear 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?

    #871418
    Rupok
    Member

    Hi there,

    Thanks for updating. You can turn off Post Meta from Customize > Blog > Content > Post Metahttp://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!

    #872757
    Lutslana
    Participant

    Dear 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.jpg

    Please check it out by yourself on http://www.cha.de/knowledge-base/
    (The login-data I posted before.)

    Kind regards!

    #873593
    Rad
    Moderator

    Hi 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: &ldquo;%s&rdquo;", '__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: &ldquo;%s&rdquo;", '__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: &ldquo;%s&rdquo;', '__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!

    #879868
    Lutslana
    Participant

    Hi 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!

    #879869
    Lutslana
    Participant
    This reply has been marked as private.
    #880417
    Thai
    Moderator

    Hi There,

    Could you please double check on your admin account?

    I was unable to login.

    Thank you.

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