Learn icon indicating copy to clipboard operation
Learn copied to clipboard

SEO

Open adamwoodnz opened this issue 1 year ago • 6 comments

Requirements

  • Single Lessons are indexed
  • Single Lesson social card assets (see comment)
  • Try to enable Lesson preview by default (see comment)

adamwoodnz avatar May 16 '24 21:05 adamwoodnz

Thanks for making a note of this. If possible, I would add making single lessons have an enticing social card to the task list So they can be shared on LinkedIn or X or Mastodon, etc.

bph avatar May 17 '24 07:05 bph

@adamwoodnz during development of the learning pathway content, we discovered that Sensei has a featured to enable Lesson previews, which is what makes the individual lessons in the Beginner WordPress User course public.

Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?

jonathanbossenger avatar May 21 '24 08:05 jonathanbossenger

Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?

Sure, we can take a look as part of this.

adamwoodnz avatar May 21 '24 20:05 adamwoodnz

Single Lesson social card assets (see https://github.com/WordPress/Learn/issues/2446#issuecomment-2116942010)

Looking into this, lessons and courses appear to set the og:image to the featured image and since we have nice featured images, they look good:

Example Example
Screenshot 2024-06-25 at 1 15 56 PM Screenshot 2024-06-25 at 1 15 27 PM

However, the auto-generated descriptions are not great. I would suggest that content-wise, you create custom excerpts for each course/lesson.

StevenDufresne avatar Jun 25 '24 04:06 StevenDufresne

Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?

This is saved in meta field. You should be able to set it to true on lesson creation.

StevenDufresne avatar Jun 25 '24 05:06 StevenDufresne

Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?

This is saved in meta field. You should be able to set it to true on lesson creation.

It's registered here, with no default value, and no way to set the default value to true, unless I'm missing something.

adamwoodnz avatar Jul 02 '24 08:07 adamwoodnz

It's registered here, with no default value, and no way to set the default value to true, unless I'm missing something.

Maybe we could deregister and reregister with a default value, but I think this is a post launch task.

Feels like all that remains is checking that single lessons are indexed. This might need checking post launch as I think single lessons might be excluded with the current theme activated. @renintw can I leave this with you?

adamwoodnz avatar Jul 25 '24 22:07 adamwoodnz

No problem, I plan to first address the remaining reported tickets and fix some broken UI that gives a poor user experience. After that, I will check the indexing.

However, the auto-generated descriptions are not great. I would suggest that content-wise, you create custom excerpts for each course/lesson.

This could also be specifically suggested to the training team to see if they want to enhance it?

outdoor2kode avatar Jul 25 '24 22:07 outdoor2kode

This could also be specifically suggested to the training team to see if they want to enhance it?

Yeah I believe they are aware that custom excerpts will improve presentation on the site generally, but copying @kathrynwp here to note that it's going to help with SEO too.

adamwoodnz avatar Jul 25 '24 23:07 adamwoodnz

Yeah I believe they are aware that custom excerpts will improve presentation on the site generally, but copying @kathrynwp here to note that it's going to help with SEO too.

Totally. From what I understand, @jonathanbossenger and @westnz are making sure there are custom excerpts on all lessons belonging to the four Learning Pathways, but given other work on everyone's plate, they were not prioritizing older lessons. That said, it would still be ideal to make sure they all have custom excerpts over time.

There are also Community courses in the mix – perhaps @harishanker could coordinate getting custom excerpts added to those?

kathrynwp avatar Jul 29 '24 14:07 kathrynwp

Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?

This is saved in meta field. You should be able to set it to true on lesson creation.

It's registered here, with no default value, and no way to set the default value to true, unless I'm missing something.

Not sure if this is still relevant, but you can set the default value of a post meta field via the filter here: https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-includes/meta.php#L717

pkevan avatar Jul 31 '24 14:07 pkevan

Would it be possible to investigate whether we're able to simply enable this on all course lessons as default, instead of needing to enable it on each course lesson?

This is saved in meta field. You should be able to set it to true on lesson creation.

It's registered here, with no default value, and no way to set the default value to true, unless I'm missing something.

Not sure if this is still relevant, but you can set the default value of a post meta field via the filter here: https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-includes/meta.php#L717

I've added all the related discussions about this to a newly open issue https://github.com/WordPress/Learn/issues/2807.

outdoor2kode avatar Aug 01 '24 14:08 outdoor2kode