Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiled layout for lessons on course page #3899

Closed
AlecRust opened this issue Jan 16, 2021 · 2 comments
Closed

Tiled layout for lessons on course page #3899

AlecRust opened this issue Jan 16, 2021 · 2 comments
Labels
Blocks [Pri] Normal Can wait for the next release [Status] Needs Design Requires design feedback [Type] Enhancement

Comments

@AlecRust
Copy link

AlecRust commented Jan 16, 2021

Have you considered supporting a tiled layout to display lessons on the course page?

Right now the course overview is a simple list within each module. A tile layout could be created using the featured image of each lesson and the excerpt which would allow for providing more information on each lesson.

Teachery does a similar thing on its demo course:

screenshot

Is this something in the works, or is there a way to achieve this with Sensei currently?

Tasks

No tasks being tracked yet.
@donnapep
Copy link
Collaborator

donnapep commented Mar 1, 2021

When we switch to using a block-based layout on the Courses and My Courses pages, eventually there will be a block setting to enable toggling between a grid and a list view.

Currently, you can add the following code snippet to switch to a column-based view, although it will likely require some CSS tweaks to make it look good:

add_filter( 'sensei_course_loop_number_of_columns', 'update_course_columns' );

function update_course_columns() {
	return 2; // Enter preferred number of columns here.
}

@donnapep
Copy link
Collaborator

Closing as this can be achieved with the Course List block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocks [Pri] Normal Can wait for the next release [Status] Needs Design Requires design feedback [Type] Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants