Thread Starter
hbk747
(@hbk747)
Also, unrelated to this but I seem to have had some issues with canonical links for categories and authors. I changed the canonicals for categories since its in the advanaced tab of yoast but how do I change the canonicals for users/authors?
For example, this author page’s canonical should be https://www.paradigmshift.com.pk/author/hamid-haider-gilani/ but in the source code it shows as https://paradigmshift.com.pk/author/hamid-haider-gilani/ without the “www”
How can I change this? Its important since seo tools are displaying a “non-indexable” with this and are citing canoncilization as the culprit.
-
This reply was modified 5 years, 8 months ago by
hbk747.
-
This reply was modified 5 years, 8 months ago by
hbk747.
Hello,
We checked on your page https://www.paradigmshift.com.pk/uae-and-isis/ in Google’s Structured Data Testing Tool and it looks like the error is referencing to line 637 which is structured data that isn’t being outputted by the Yoast SEO plugin. You might want to check on this further here if it’s another plugin or custom code that is causing this.
With regards to the canonical showing the non-www version, would it be possible for you to try this:
-
This reply was modified 5 years, 8 months ago by
Michael Tiña.
Thread Starter
hbk747
(@hbk747)
I think it is the theme. The issue comes around the author box at the end of the posts.
I checked the authormaginfo.php file of my theme (which has code for the author box) and it says this (among other things).
<?php
$user_description = get_the_author_meta( 'user_description', $post->post_author );
if ( ! empty( $user_description ) ) { ?>
<div class="postauthor vcard ghost rad author p-border" itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<h3><?php esc_html_e('About the Author','gutenverse');?> / <span class="fn" itemprop="name"><?php the_author_posts_link(); ?></span></h3>
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<?php echo get_avatar( get_the_author_meta('ID'), '80' ); ?>
</div>
I think this might be the culprit since the schema stuff is mentioned here. I have contacted the theme developer as well, but can you give me more insight into this?
I would appreciate it.
Regarding the other issue, I will try that and let you know.
Edit: the non-www issue has been fixed. Great suggestion. Hope you can provide more insight to the former problem now.
Regards
-
This reply was modified 5 years, 8 months ago by
hbk747.
@hbk747 We’re sorry abut unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on this or how to make changes to it. If you need support related to your theme, we’d recommend reaching out to the theme developer’s directly as they would be the best suited to offer support for it.
Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.
Thank you for your understanding.
Hi @hbk747 ,
We’re now closing this thread because it’s already been inactive for quite awhile. Should you have further questions/concerns, please open a new thread.
Hello
The author page of my website has the same problem
https://www.gitso.ir/author/gitso-admin/
————————————————–
The problem is definitely with the Yoast plugin
And only your plugin adds structured data!
Google Says: (Missing field “url”)
You can see the result from the link below:
Google Test Structured Data