Disable Astra theme in the author link

Astra theme: The last you may have noticed changes on the iGuRu.gr page. Yes, that's right, because we changed the theme. We used to use Genesis with a Custom child, and now we use Astra, with a custom child as well.

We chose the Astra theme because it is light, fast with many customization options, but also because it is SEO friendly. As for the configuration, we changed the lights, with additional php and css code to bring it more or less to the appearance of the old Genesis theme.

One of the changes we made to the Astra as soon as we first tried it was to unlink the user from the posts, as we consider it an additional security risk.

What I mean:

Almost everything themes have a link attached to the name of the columnist of each publication. This link leads to a page with all the publications of the columnist. But it shows the login name publicly.

for example

https://iguru.gr/author/to_onoma_syndesis/

Why is it a risk? All WordPress have a default login page, that if you know her you can easily carry out brute force attacks. This link makes things easier for the hacker as it gives the dish the login name of the columnist. So you only need to search for the password.

So because we have as a starting point to make things a little more difficult for any would-be hacker in all our themes we disable this link.

Let's see how it is done in Astra.

Add the following code to the functions.php of the child you are using:

add_filter ('astra_post_author_output', 'call_back'); function call_back () author $ author_info_array = sprintf ('
% 1 $ s
', sprintf ('

% 1 $ s

', esc_html__( 'About The ', 'astra-addon' ), get_avatar( get_the_author_meta( 'email' ), 100 ), ' ', esc_html( get_the_author() ), wp_kses_post( get_the_author_meta( 'description' ) ), astra_attr( 'author-url-info' , array( 'class' => '', ) ), astra_attr( 'author-name-info', array( 'class' => '', ) ) ), astra_attr( 'author-item-info', array( 'class' => '', ) ), astra_attr( 'author-desc-info', array( 'class' => '', ) ) ); $author_info_array; } add_filter('astra_post_author' , 'author_call_back', 15 ); function author_call_back(){ ob_start(); echo ' 'posted-by vcard author',)); echo '>'; // Translators: Author Name. ?>

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.082 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).