{"id":12864,"date":"2020-09-23T15:00:50","date_gmt":"2020-09-23T13:00:50","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=12864"},"modified":"2020-12-04T10:49:46","modified_gmt":"2020-12-04T09:49:46","slug":"hide-author-wordpress","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/hide-author-wordpress\/","title":{"rendered":"How to Hide Author Name from Your WordPress Posts"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Published WordPress blog posts will, in most cases, include relevant metadata like author name and publishing date thanks to your theme\u2019s code. While this is a beneficial feature, on some occasions, you will need to change or remove this data from your website. In this article, we will cover the process of changing or removing the author&#8217;s name from a WordPress post, specifically.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Even though this might sound like an easy task, it can be quite challenging as there are no in-built options for it within WordPress. We will explain several methods that vary in difficulty so that you can choose the one best suited to your needs and existing WordPress knowledge. We will also touch upon the reasons why you would want to change or remove an author&#8217;s name, as those can vary depending on the case. If you\u2019d like to skip to any specific part of the article, just click on one of the links below:[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#reasons-for-removing-an-author-name\">Reasons for removing an author name<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#replacing-an-author-with-a-general-author-name\">Replacing an author with a general author name<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#removing-the-author-name-using-css\">Removing the author name using CSS<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#removing-the-author-name-using-code\">Removing the author name using code<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"reasons-for-removing-an-author-name\"><\/a>Reasons for removing an author name from your WordPress posts<\/h2>\n<p>[\/vc_column_text][vc_column_text]There are quite a few reasons for changing or removing the author&#8217;s name from posts. Therefore, before proceeding to the how-to\u2019s of this article, let us quickly cover possible motives.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Articles could be written by authors who wish to remain anonymous, especially if the topic of the article is highly sensitive or controversial. You may also simply want to improve your posts visually. The easiest way of achieving it is by removing added metadata, such as the author name or date, that might cause the posts to look cluttered or visually unappealing.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]On the other hand, you could be running a sizable multi-author team. In that case, the articles would pass through an intricate screening process before being published. As such, changing the name of your author to one more generic and easily associated with your website is warranted. The added benefit of this approach is that if a single author decides to stop working for your website, it will be less noticeable.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;80px&#8221;][vc_widget_sidebar sidebar_id=&#8221;blog-magazine-banner&#8221;][vc_empty_space height=&#8221;81px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">How to remove the author name from your WordPress posts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Depending on the theme or plugins you are using, the process of changing or removing the author\u2019s name differs substantially. Some themes or plugins may have in-built options for this purpose, while others don\u2019t. But, plugins, in general, are prone to compatibility issues with other plugins or themes. And, the options of a particular theme might not be available after switching to another theme. Thus, it is important to know the approaches that circumvent these issues. In this article, we have included three such methods.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"replacing-an-author-with-a-general-author-name\"><\/a>Replacing an author with a general author name<\/h3>\n<p>[\/vc_column_text][vc_column_text]Sometimes, using a generic, non-revealing name is a better alternative to completely removing the author&#8217;s name from your blog posts. This option is quite beneficial for articles written by a team of people, like an editorial team or team of freelancers, with a clear and determined writing style. As we noted previously, it makes the absence of a particular author less noticeable as long as the same writing style is maintained.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]We will show you how you can replace an author\u2019s name for both a single post and all the posts. For either option, you need to have an additional WordPress user with a generic name. If you don\u2019t already have it, you can add one now. <strong>Log in to your website with your administrator user-role account and navigate to Users &gt; Add New<\/strong>. Afterward, <strong>fill in the required info<\/strong> and any other you wish to add, <strong>choose the <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-user-roles\/\">Author or Contributor user role<\/a><\/strong>, and <strong>press the <em>Add New User<\/em> button<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-An-Author.jpg\" class=\"attachment-full size-full\" alt=\"Adding An Author\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-An-Author.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-An-Author-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-An-Author-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Replacing the author name on a single post<\/strong><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To change the author on a single post, <strong>open the post in question for editing<\/strong>. Depending on which page builder you are using, the following steps differ slightly.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you are using Gutenberg as your page builder of choice, then <strong>navigate to the top right section of your screen<\/strong>. <strong>Click on the <em>Document<\/em> tab<\/strong>, followed by a <strong>click on the <em>Status &amp; Visibility<\/em> section<\/strong>. <strong>Find the <em>Author<\/em> option, select the previously created author,<\/strong> and <strong>press the <em>Update<\/em> button<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post.jpg\" class=\"attachment-full size-full\" alt=\"Changing The Author On A Single Post\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you are using a different page builder (such as Classic Editor or WPBakery Page Builder), then you need to enable the Author section first. <strong>Click on the Screen Options<\/strong> in the top right corner of the screen and <strong>tick the checkbox next to the <em>Author<\/em> option<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Screen-Options.jpg\" class=\"attachment-full size-full\" alt=\"Changing The Author On A Single Post Screen Options\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Screen-Options.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Screen-Options-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Screen-Options-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Then, <strong>scroll down to the <em>Author<\/em> section, select a new author,<\/strong> and <strong>press the <em>Update<\/em> button<\/strong>, located in the <em>Publish<\/em> section on the right.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board.jpg\" class=\"attachment-full size-full\" alt=\"Changing The Author On A Single Post Editorial Board\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Bulk-replacing the author name<\/strong><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To replace the author&#8217;s name on all your posts, <strong>navigate to Posts &gt; All Posts<\/strong> first. <strong>Click on the <em>Screen Options<\/em><\/strong> and <strong>find the <em>Number of items per page<\/em> option<\/strong>. <strong>Insert 999<\/strong> (which is the highest possible number available) and <strong>press the <em>Apply<\/em> button<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts-Screen-Options.jpg\" class=\"attachment-full size-full\" alt=\"Changing The Author On All Posts Screen Options\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts-Screen-Options.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts-Screen-Options-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts-Screen-Options-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Select all posts by <strong>ticking the checkbox<\/strong> next to the <em>Title<\/em> column, then <strong>select the <em>Edit<\/em> option from the dropdown menu<\/strong> above, and <strong>press the <em>Apply<\/em> button<\/strong> after.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts.jpg\" class=\"attachment-full size-full\" alt=\"Changing The Author On All Posts\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-All-Posts-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>In the options above the list of posts, choose a different author, and press the <em>Update<\/em> button.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board-DD.jpg\" class=\"attachment-full size-full\" alt=\"Changing The Author On A Single Post Editorial Board DD\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board-DD.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board-DD-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Changing-The-Author-On-A-Single-Post-Editorial-Board-DD-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]These settings will apply for all posts shown on the page, meaning up to 999 posts.<strong> If you have more than 999 posts, you will have to perform the same steps for each of the remaining pages within the Posts navigation.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"removing-the-author-name-using-css\"><\/a>Removing the author name using CSS<\/h3>\n<p>[\/vc_column_text][vc_column_text]If you are the only author on your website, removing the author&#8217;s name is a logical step, as you might not need to keep it. Or you may simply want to eliminate the author&#8217;s name from the display to improve the design of your WordPress posts. In either case, you will need a bit of coding knowledge to carry out this approach. But, don\u2019t be alarmed, we will carefully explain <strong>two possible methods<\/strong> of removing the author\u2019s name using code.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The first and arguably easier method is to <strong>hide the author name using CSS<\/strong>. We are purposely using the term \u201chide\u201d instead of \u201cremove\u201d, since using CSS as a solution will keep the author\u2019s name in the code, but will not be visible on the frontend of your website.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Click to view one of your posts, right-click on the author&#8217;s name, and press the <em>Inspect<\/em> option<\/strong>. This will open the Elements tab of your browser\u2019s developer tools. You can also do the same by pressing the F12 key on your keyboard for Windows or Command+Option+J for Mac.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS.jpg\" class=\"attachment-full size-full\" alt=\"Hiding The Author Using CSS\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]From the <em>Elements<\/em> tab, <strong>locate the HTML element that wraps both the author name and the <em>By:<\/em> label<\/strong>. You can do so by hovering over different HTML elements until the one that contains both<em> By:<\/em> and the author\u2019s name is highlighted on the page.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"416\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS-Inspect.jpg\" class=\"attachment-full size-full\" alt=\"Hiding The Author Using CSS Inspect\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS-Inspect.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS-Inspect-300x178.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Hiding-The-Author-Using-CSS-Inspect-620x368.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]This inspection process is the same regardless of your theme. But the wrapping element and its CSS classes, if it has any, can differ significantly between different themes.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]As you can see in the screenshot above, in our example, the corresponding wrapping element is a div whose class is <strong>mkdf-post-info-author<\/strong>. From a coding standpoint, to hide your author as well as the<em> By:<\/em> line, <strong>you only need to apply the <em>display: none;<\/em> rule to the appropriate CSS selector<\/strong>. Therefore, the simplest solution in our case would be to use the code given below.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">.mkdf-post-info-author {\r\ndisplay: none;\r\n}<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]This code will hide all HTML elements with the class <strong>mkdf-post-info-author<\/strong>. You can specify your <a href=\"https:\/\/www.w3schools.com\/cssref\/css_selectors.asp\" target=\"_blank\" rel=\"noopener noreferrer\">CSS selector<\/a> even further if needed.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]After creating your code, <strong>navigate to Appearance &gt; Customize &gt; Additional CSS. Insert the code and press the <em>Publish<\/em> button<\/strong>. We also suggest adding helpful comments regarding the code. They can prove useful in troubleshooting any issues later, as well as keep the code snippets structured and less cluttered.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-CSS.jpg\" class=\"attachment-full size-full\" alt=\"Adding CSS\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-CSS.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-CSS-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Adding-CSS-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;82px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"removing-the-author-name-using-code\"><\/a>Removing the author name using code<\/h3>\n<p>[\/vc_column_text][vc_column_text]Since the author\u2019s name and other relevant metadata is shown thanks to the code used in your theme, the other coding approach to this problem is to remove the code from the appropriate theme template file. Doing so will require some coding knowledge and general WordPress familiarity. Before starting, we suggest that you <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-backup-wordpress-files\/\">back up your files<\/a>, as improper editing causes errors that could break your site.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To remove the code, <strong>you first need to locate the template file that contains it<\/strong>. Depending on the file and folder structure of the theme you are using, this can prove to be a difficult task. Luckily, WordPress has a few plugins that can help us narrow the search or even pinpoint a specific template file. The one we found most useful for this article is the <a href=\"https:\/\/wordpress.org\/plugins\/string-locator\/\" target=\"_blank\" rel=\"noopener noreferrer\">String Locator plugin<\/a>. As the name of the plugin suggests, it outputs all the template files that include the string you searched for. We are going to use it to find a template file that contains the wrapping element with the author\u2019s name. We are going to do this by searching for its custom class (<strong>mkdf-post-info-author<\/strong>, in our example). If you aren\u2019t sure how to find that element and its custom class, you can find the steps described in <a href=\"#removing-the-author-name-using-css\">the previous section of this article<\/a>. But, be aware that the precise element and class name can vary significantly based on the theme you are using. Now we can proceed to the steps required for this method.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]After <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-install-a-wordpress-plugin\/\">installing the plugin<\/a>, <strong>navigate to <em>Tools &gt; String Locator<\/em>. Choose the folder you wish to search, insert the search string (custom class or ID), and press the <em>Search<\/em> button.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files.jpg\" class=\"attachment-full size-full\" alt=\"Search The Files\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To clarify, we limited the scope of the search to the wp-content directory, which includes both the plugin and theme files. But, in this particular case, you can narrow the search down to the directory of the theme you are using. Depending on your understanding of the WordPress file and folder structure, you can choose to narrow down the search scope even further.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Also, the String Locator plugin offers the possibility of a <a href=\"https:\/\/www.tutorialspoint.com\/php\/php_regular_expression.htm\" target=\"_blank\" rel=\"noopener noreferrer\">RegEx search<\/a>. In this case, we are searching for an exact string instead of a pattern, so we don\u2019t need to enable that option.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The search will provide you with a list of files matching the conditions, which will help you significantly decrease the number of files you need to examine. However, only on the rarest occasions will you be able to get the exact file you need as a single search result. So, to narrow the search results further, <strong>look at only the .php files<\/strong> (files whose name ends with .php). In most cases, the .php files are the ones responsible for adding functionality and HTML structure to your website. And showing the author\u2019s name, wrapped with corresponding HTML elements, is an excellent example of both.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Depending on the string label you use, there could be duplicate file entries in your search results. So, look carefully at the file paths; they can help you pin down which search result entries are unique files and which are duplicates.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-2.jpg\" class=\"attachment-full size-full\" alt=\"Search The Files 2\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-2.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-2-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-2-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Once you\u2019ve eliminated all the duplicate file paths, click on each one and review the code within. Look for the same HTML structure that you found earlier using <em>Inspect<\/em>.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-3.jpg\" class=\"attachment-full size-full\" alt=\"Search The Files 3\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-3.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-3-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-3-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When you find the file you need, <strong>all you have to do is edit it. You can remove or comment on lines of code using the String Locator plugin.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you choose to remove the code that shows the author\u2019s name on your site, make sure to delete everything between the two appropriate tags. If the code is wrapped <span style=\"font-weight: 400;\">\u00a0&lt;div&gt;<\/span> in tags, click on the opening <span style=\"font-weight: 400;\">&lt;div&gt; <\/span>tag and this will automatically highlight the closing <span style=\"font-weight: 400;\">&lt;\/div&gt;<\/span> tag. The same applies if the code you\u2019re removing has any other kind of tag, such as <span style=\"font-weight: 400;\">&lt;p&gt; <\/span>tags. Simply delete everything between those tags, including them. Failing to remove the whole code section or partially removing some the remaining code carries with it the risk of breaking your site.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you choose to comment, make sure you understand how to properly comment lines of code <a href=\"https:\/\/www.w3schools.com\/html\/html_comments.asp\" target=\"_blank\" rel=\"noopener noreferrer\">in HTML<\/a> and <a href=\"https:\/\/www.php.net\/manual\/en\/language.basic-syntax.comments.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP<\/a> (depending on which code you find in the file). After you are done editing the file, <strong>press the <em>Save Changes<\/em> button<\/strong> in the top right corner of the screen.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-4.jpg\" class=\"attachment-full size-full\" alt=\"Search The Files 4\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-4.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-4-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/09\/Search-The-Files-4-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Editing the same file can also be done via FTP<\/strong>. It is very useful to keep this in mind if you happen to make a mistake while editing and lose access to your dashboard. By getting hold of the same file <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-use-ftp\/\">using FTP<\/a>, you will be able to either remove the changes or try to correctly edit the file, to solve the error.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Now that you are made aware of the different reasons why hiding an author&#8217;s name is beneficial, you can consider whether this is the right choice for your site, too. And you can examine the options in this article and pick which approach best suits your requirements and skill level. As situations where changing or removing an author name are more frequent than you might think, we suggest bookmarking this article for future use.<br \/>\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Need a way to hide the author in WordPress? In this article, we&#8217;ll show you how to do it using default WordPress options, CSS, and code.<\/p>\n","protected":false},"author":11229,"featured_media":12946,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[46,14,4,13],"class_list":["post-12864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-blogging","tag-core","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/12864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=12864"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/12864\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/12946"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=12864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=12864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=12864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}