Thread Starter
bbua97
(@bbua97)
As I cannot edit, the same question for lesson archives. I don’t understand what is the purpose of them to be honest.
Hi @bbua97 ,
> disable the archive pages for course categorys?
Can you clarify which page you mean? Do you have a URL we can take a look at?
> lesson archives. I don’t understand what is the purpose of them to be honest.
It’s not possible to turn them off via WP Admin, without some custom coding in plugin files; see:
https://senseilms.com/documentation/theming/#lesson-archives
The simplest solution would be to just not provide any links to the lesson archive on your site.
You can also use a plugin like Yoast to request that search engines don’t index that page, and you can even set up a 301 redirect so that anyone who does find the page will be redirected somewhere else – https://support.google.com/webmasters/answer/93633?hl=en
Best,
Cena
Thread Starter
bbua97
(@bbua97)
Hey there,
shure 🙂
> Can you clarify which page you mean? Do you have a URL we can take a look at?
I mean every course category I create also enables an archive page for each. They are also linked on the my-courses page and the course archive. I’m not planning to offer such high amount of courses that I really need archive pages for each category. I structured the course archive page already into the categorys so I don’t want to get the visitors on “undesigned” archive pages for the categorys.
Plugin Support
Jay
(@bluejay77)
Hi @bbua97,
Thank you for expanding! It sounds like you want to disable lesson archive by default.
This request to disable lesson archive has been asked in our repository as a feature request here: https://github.com/Automattic/sensei/issues/4241. I recommend you to add your feedback there and subscribe to that issue for any updates.
I hope that helps! Let us know if you have any other questions.
-
This reply was modified 4 years ago by
Jay.
Thread Starter
bbua97
(@bbua97)
Not only the lesson archive but also the archives and links for the course categorys and their archive pages.
Hi again,
Categories don’t really have an archive page in the traditional sense, they list the posts so they are a bit different.
There is no easy way to disable that. One option would be to hook to the register_taxonomy_args filter and try to alter the behavior there. After this, you will still have to modify the courses listing templates to remove the category links.
I hope this helps, please feel free to contact us if you have any other questions.