• I know this must be an easy fix but I cant quite see it, I tried editing the Singlepost.php but that wasn’t quite enough. Any direction on removing author info. I’m the only contributor, seems redundant. Or maybe its good SEO/authorship with the latest algorithms. ???

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Modchik! Can you please post the link of your site and the name the Theme that you are using?

    Head to single.php and remove the following block of code:

    <div class="clearfix author-info">
    				<div class="author-photo"><?php echo get_avatar( get_the_author_meta( 'ID' ) , 75 ); ?></div>
    				<div class="author-content">
    					<h3><?php the_author(); ?></h3>
    					<p><?php the_author_meta( 'description' ); ?></p>
    					<div class="author-links">
    						<a>" rel="me">More Posts</a>
    
    						<?php if ( get_the_author_meta( 'twitter' ) ) : ?>
    						<a>">Twitter</a>
    						<?php endif; ?>
    
    						<?php if ( get_the_author_meta( 'facebook' ) ) : ?>
    						<a>">Facebook</a>
    						<?php endif; ?>
    
    						<?php if ( get_the_author_meta( 'linkedin' ) ) : ?>
    						<a>">LinkedIn</a>
    						<?php endif; ?>
    					</div>
    				</div>
    			<!-- .author-info --></div>

    @dadcamp – what will happen to that change when the theme is updated?

    Do not edit the theme itself. First create a child theme for your changes.

    If not interested or care for making a child theme and all you want is just some changes in styling here and there, you can use a Custom CSS plugin. It’s better than editing theme file directly.
    https://www.ads-software.com/plugins/search.php?q=custom+css

    This is to visually hide the author info, and keep the link to more posts by, and the social thingy.

    /*_____ do  remove author info keep SEO _____*/
    .author-content h3,
    .author-content p,
    .author-info .author-photo { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); }
    .author-info .author-content { margin: 0; text-align: center; }
    /*_____ end remove author info keep SEO _____*/

    But if you are planning on other things that require template editing or something done in php function, then make a child theme.

    Thread Starter modchik

    (@modchik)

    Thank you Paulwpxp that is exactly what I was looking for. I will consider a child theme as I become more skilled at this. ?? For now CSS works well, I used to get the custom header.

    Dadcamp I did that, emptied the cache but it still appeared, it has to be in more than one php file, user-profile.php maybe?

    Okay, so I’m new to the css editing thing.. I’ve been editing my theme files directly. Changing fonts, colors, alignments, things like that.

    So what will happen when there is an update?

    see Why use a Child Theme? section in the Child Themes codex page ( link at esmi post ).

    i’ve deleted the author info entirely. how do i also get rid of the ‘previous article’ / ‘next article’ section? It just adds too much large text to the design.

    this is fashionistas theme.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Removing Authorship’ is closed to new replies.