How to change author on wordpress

New Page

How do I remove the author name from WordPress posts?

3a85d656204cc25cc4ffb10236277842bhanu ahluwalia Posted in: WordPress Tutorials

How do I remove the author name from WordPress posts?

86/ 100

Powered by Rank Math SEO

If you ever leave a WordPress post with a name at the top that looks like this: “Jessica Miller wrote this post”. then you know the name of the author of a WordPress post. However, some blog owners may prefer to remove the author name displayed next to their posts.

WordPress does not provide the option to override the author name by default, but there are many ways to override the author name of your WordPress posts. You can manually replace the author name, use a plugin to replace your post, or replace using CSS code.

In this article, we will show you how to remove the author name using both methods. So without further ado, beginnings.

Contents

  1. Why Remove Author Name in WordPress?
  2. Comment above author name in WordPress?
    • Remove author name using a plugin
    • Remove author name from schema markup
    • Use a generic name
    • First manual removal of author name
    • Remove author name using CSS code
  3. conclusion

1 Why Remove Author Name in WordPress?

Author name facilities are an important aspect of WordPress. Help readers learn more about the writer.

However, there are many cases where there are benefits to hiding or removing the author’s name.

Si plusieurs membres ne contribuent pas à un article de blog, applaudissez une seule personne serait injuste pour toute l’équipe. Il serait utile que vous masquiez ensuite le nom des auteurs.

Dans un autre cas, vous pouvez avoir de nombreux contributeurs/rédacteurs indépendants qui contribuent régulièrement à des articles, mais vous souhaitez que votre site conserve un style et une voix cohérentes.

Voyons maintenant les différentes méthodes pour supprimer les noms d’auteur WordPress.

2 ¿Cómo eliminar el nombre del autor en WordPress?

2.1 Eliminar el nombre del autor usando un complemento

Primero, debe instalar y activar el complemento WP Meta and Date Remover . Para hacerlo, navegue a la sección Complementos> Agregar nuevo de su tablero de WordPress. Busque el complemento WP Meta and Date Remover, e instálelo y actívelo.

Install and activate the WP Meta and Date Remover plugin

Toda la metainformación se borra automáticamente una vez que el complemento está activo. Para borrar los datos, emplea dos métodos: CSS para ocultarlos del front-end y PHP para eliminarlos del back-end. El último método implica que los metadatos ya no son visibles para los motores de búsqueda y puede usar cualquier método.

WP Meta and Date Remover Plugin Settings

Haga clic en el botón Guardar cambios para guardar su configuración. A continuación, puede visitar su sitio y ver que se ha eliminado el nombre del autor.

Author name removed

2.2 Remove the Author Name from Schema Markup

Rank Math helps optimize author profiles by enabling an SEO meta box. If you want to remove the author, you may need to use a filter to remove the author schema. To do so, you need to add the following code snippet to your theme’s functions.php file.

/** * Filter to change the schema data. * Replace $schema_type with schema name like article, review, etc. * * @param array $entity Snippet Data * * @return array */add_filter(“rank_math / snippet / rich_snippet_{$schema_type}_entity”, function ( $entity ) { if ( isset( $entity[‘author’] ) ) { unset( $entity[‘author’] ); return $entity; } return $entity;});

Please note you need to change the {$schema_type} to the object type you wish to modify.

For example, if you wish to change the {$schema_type} object to an article, the above code will look as shown below.

add_filter(“rank_math / snippet / rich_snippet_article_entity”, function ( $entity ) { if ( isset( $entity[‘author’] ) ) { unset( $entity[‘author’] ); return $entity; } return $entity; });

2.3 Use of a generic author number

Using a generic, non-revealing name instead of fully eliminating the author’s identity from your blog entries is sometimes a preferable option. This method is particularly advantageous for articles authored by a group of people, such as an editorial team or freelancers, who have a distinct and consistent writing style. Maintaining the same writing style makes the absence of a particular author less noticeable.

To add a generic name, navigate to Users > Add New from your WordPress dashboard. Create a new username and fill in the required details you wish to add, and choose the user role. Click on the Add New User button.

add username

Next, navigate to Users and click on All Users. Click on Edit next to the new username you just created, as shown below.

edit users

Enter the Nickname you want to display on your posts, for example, the editorial team. Then, select the nickname you created from the Display name publicly as a drop-down menu.

Enter nickname

Once done, click on the Update User button to save your changes. You can now use this generic name for your posts.

2.4 Manually Remove the Author Name

This method requires you to edit WordPress theme files. Doing so might require some coding knowledge and WordPress familiarity.

Note: Before making any changes, ensure you have a backup of your theme or child theme. If something goes wrong, you can swiftly undo the changes.

To manually remove the author name, you must locate and delete the code responsible for displaying the author’s name in your theme files. The most common locations to look for this code are single.php, content.php, archive.php, and index.php files.

In some cases, it’s not possible to locate the author’s name in the current template. If that is the case, then look for the codes in the template-tag.php or functions.php files.

For example, the Twenty Twenty One theme uses the template-tags file for the author information and uses the twenty_twenty_one_posted_by() function as shown below.

Find the CSS code

To remove the author’s name, you need to replace it with the following code.

function twenty_twenty_one_posted_by() {}

Click on the Update File button to save your changes. You can now visit your site to see the changes applied.

Manually deleted author name

2.5 Remove the Author Name Using CSS Code

If you have some coding knowledge, you can add CSS code and remove the author’s name from your posts. To do so, navigate to one of your posts, right-click on the author’s name and click on the Inspect Element option.

Inspect author name

Locate the HTML element that encompasses both the author name and the By: label in the Elements tab. Hover over different HTML elements on the page until the one that contains both By: and the author’s name is highlighted.

find the name of the author

The relevant container element in the screenshot above is a div with class author-name. To hide your author and the By: line in CSS, you just need to apply display:none; rule to the appropriate CSS selector. Add the following code snippet to remove the author name.

.author-name{display: none;}

Once your code is created, go to Appearance > Customize > Additional CSS . Add the code snippet above and click the Publish button .

add css code

You can still visit your post and the author’s name will be removed.

3 Conclusion _

Keeping in mind that you know the different reasons and benefits of caching an author’s name, you can also decide if you have the best option for your website. We have discussed several methods to remove the author’s name; you can use whichever suits you best.

If you like this article, let us know by tweeting  @rankmathseo.  💬

to share

share share email

How to change the author of a post in WordPress?

SIMILAR OBJECTS

  • Comment added to WordPress site content?

  • How to Adjust WordPress Writing Settings?

  • How to Adjust Playback Settings in WordPress?

  • How to Add/Remove/Manage Users in WordPress?

Bessere Übersetzung vorschlagen


Video How to change author on wordpress

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…