Archived topic
Sensei Archive Page
7 replies · Started by David on June 23, 2021
Hi!
I'm using Sensei to create courses. To show course archive in home page im using [sensei_courses] shortcode.
How can i have same style, number of columns... in Sensei course archive than in default blog post archive?
Thanks.
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Hi!
I send you link and credentials.
Thanks
Hi there,
Looking at the HTML the sensei posts have a columns class - i would assume there is a shortcode option for displaying the list in columns - but there docs aren't clear on that. Can you check with the plugin author if it can display columns ?
Once that in place it should be fairly simple to provide some CSS to 'match' the blog styles.
Hi David!
I do it with this code:
add_filter( 'sensei_course_loop_number_of_columns', function () {
return 3; // Change to whatever number of columns you want.
} );
How can i match with same CSS as in blog style?
Thanks.
you would need some other filters to position:
1. Display a larger image - its using a 100px thumbnail - its going to need to be at least a medium size 300px image.
2. Position the image above title
Hi David,
can help me with this? Have you this PHP filters to copy?
Thanks
Those would have to come from the plugin author