• Resolved shirtguy72

    (@shirtguy72)


    How can we disable ld+json displaying in the page source… “https:\/\/OURWEBSITE\/author\/OUR LOGIN C R E D E N T I A L S\/”

    I have been able to remove from displaying with Real Time Find And Replace plugin but I would really prefer this action through Rank Math.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @shirtguy72

    Thank you for contacting the support.

    You can use the following filter to remove the Schema data:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return [];
    }, 99, 2);

    Sorry for the ignorance but can you please tell us what do you mean by Remove Author? Do you want to remove or change the author’s value in the Schema data?

    Looking forward to helping you.

    Thread Starter shirtguy72

    (@shirtguy72)

    No. forgive me. What I was getting at is similar to when one would hover over an author link in WP and the little window would appear showing the the authors true name which is also the login username. I have all author links on my site as Display None with css for that reason. Now in optimizing for speed I found myself looking at the source code for my blog page and seen <script type=”application/ld+json”> was also giving away my username.

    Like I said before, I have it now disabled via another plugin. If you biew the source code of my blog page https://www.vintageheavymetal.com/archive/ just after the og tags <script type=”application/ld+json”> begins on line 51 and everywhere in that long line of schema after the word author, a url giving away my username appeared. Now that Real Time Find Replace is masking it, it only shows “author”:{“@type”:”Person”,”name”:”Vintage Heavy Metal” … Hope this all makes sense. And thanks for taking the time to listen.

    Plugin Author Rank Math

    (@rankmath)

    Hello @shirtguy72

    In the author field, Rank Math use author’s display name:
    https://i.rankmath.com/tXxP4K

    By default, the display name is set to the username. You can select a different value in the dropdown.

    Hope that helps. Thank you.

    Thread Starter shirtguy72

    (@shirtguy72)

    I have had the display name publicly set as a nickname. Doesn’t change the fact that the url to the author still displays, giving away the information that in a perfect world, it shouldn’t. I respect that you gave me the time of day to listen to my rant. Unfortunately I am ranting to the wrong people. This is and has been a WordPress issue that I feel should have been addressed years ago. Maybe someone will develop a plugin or I’ll find some snippet that will make me sleep better at night. Again thanks for your time. Respectfully.

    Plugin Author Rank Math

    (@rankmath)

    Hello @shirtguy72

    Sorry for the delayed response. Apologies.

    By default, WordPress shows the username in the author URL.

    You can change this by adding nickname in the SERP link field: https://i.rankmath.com/x8YCPD

    Or you can use the solution provided here:
    https://wordpress.stackexchange.com/questions/5742/change-the-author-slug-from-username-to-nickname

    Hope that helps. Thank you.

    Thread Starter shirtguy72

    (@shirtguy72)

    Neither of the two options worked in my instance but your suggestions did lead me to this post by WP Beginner which worked perfectly. https://www.wpbeginner.com/plugins/how-to-change-author-url-slug-and-base-in-wordpress/ Hope this can help someone else! Again thanks for taking the time and thanks for all your hard work on this, the BEST SEO plugin on the repo! Cheers!

    Plugin Author Rank Math

    (@rankmath)

    Hello @shirtguy72

    We are glad that you got it sorted.

    If you need any further assistance, please stay advised that we are here to help.

    Thank you.

    Author URL exposes the admin username in Schema / HTML source code. There must be an option within RankMath to update Author URL, so that admin username stays protected.

    It fails the security and protection efforts of hiding administrative username.

    Sorted it out with Edit Author Slug plugin for the time being.

    Plugin Author Rank Math

    (@rankmath)

    Hello @intolaptop

    Please open a new support topic.

    Also, in the author field, Rank Math use author’s display name:
    https://i.rankmath.com/tXxP4K

    By default, the display name is set to the username. You can select a different value in the dropdown.

    Or you can use this tutorial to change the behavior:
    https://www.ads-software.com/support/topic/remove-author-from-ldjson-2/#post-12487861

    Hope that helps. Thank you.

    Thread Starter shirtguy72

    (@shirtguy72)

    It does seem “Edit Author Slug” plugin is the only real resolve to this issue, like I said before: It’s not really a Rank math issue but I do think Rank Math implementing to same type code would be well received by Rank math users. Kindly consider this a “Suggestion Box Entry” Again thanks for such a wonderful SEO plugin! 5-Stars!

    Plugin Author Rank Math

    (@rankmath)

    Hello @shirtguy72

    Hope you are doing well and staying safe.

    Definitely.

    There are existing feature requests, so I’ve added your vote to our internal suggestions lists. If your suggestions are something that we’re able to introduce, I’ll be sure to let you know.

    Hope that helps. Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove Author from ld+json?’ is closed to new replies.