Coursepress Pro with Custom theme – responsive layout issues

I am trying to use Coursepress with our custom theme.

Installing the latest version 2 completely messed up our site so we need to start again.

Currently, the listing of courses on our site is handled by the page.php template.

The problem is, we want to customize this course listing and am unsure how to go about it.

If we let it use the default, the layout is not responsive for any coursepress stuff. Our site is completely responsive.

SO the quick answer would probably relate to this question….

What should we name our custom template for the course listing page so we can populate it with shortcodes and design our own layout?

  • Kasia Swiderska
    • Support nomad

    Hello lowercase,

    What should we name our custom template for the course listing page so we can populate it with shortcodes and design our own layout?

    List of courses is displayed by the archive-course.php template – you can take a look on theme coursepress that comes with plugin and see what templates it uses and then use those as base for templates in your theme.

    Let me know if you have more questions about this.

    kind regards,

    Kasia

  • lowercase
    • Site Builder, Child of Zeus

    Thanks Kasia Swiderska

    I think you just helped us discover what was breaking the site!

    The Coursepress theme in Version 2 does not have an archive-course.php file.

    Is it located somewhere else or does version 2 not have this file anymore?

    Either way, the issue remains. What template is used is version 2 to display the course listing?

  • Dimitris Kalliris
    • Support Team Lead

    Hey there lowercase,

    hope you’re doing good today and don’t mind chiming in!

    This is true indeed, the instructions that my colleague Kasia provided were about previous CoursePress version and I guess it was a spontaneous reply. :slight_smile:

    The template files used in your-domain.com/courses/ page is actually page.php (/coursepress/2.0/themes/coursepress/page.php) which calls the content-page.php template part (/coursepress/2.0/themes/coursepress/content-page.php).

    The actual course markup is being generated by “course_list_box” shortcode and its output can be filtered as you can see in /coursepress/2.0/include/coursepress/data/shortcode/class-template.php at around line#273

    $template = apply_filters( 'coursepress_template_course_list_box', $template, $course_id, $a );

    Hope that was some help, feel free to post back here if more assistance is required!

    Warm regards,

    Dimitris

  • lowercase
    • Site Builder, Child of Zeus

    Thanks Dimitris

    I thought I was going mad. Looks like you have totally changed the template structure in version 2, so thanks for clarification of that.

    I have found one bug. When you visit the Course Dashboard, you get a list of ‘My Courses’.

    For each course regsitered you get a ‘Manage Course’ button. At the moment, this button does not go anywhere.

    Link on button goes to here but it doesn’t work…

    http://127.0.0.1:4001/wordpress/wp-admin/admin.php?page=coursepress_course&action=edit&id=435

    Any thoughts?

  • Rupok
    • Ex Staff

    Hi lowercase,

    Thanks a lot for reporting. I can regenerate both issues on my test site. So I’m marking this as a confirmed bug and reporting to our developer right now. I believe, he will come up with a fix soon.

    Please keep in mind, our developers work round the clock and they have to deal with lots of critical issues and other things. So it may take a little while for them to check this and release a fix.

    Have a nice day. Cheers!

    Rupok

  • Panos
    • SLS

    Hi lowercase ,

    Thanks for reporting :slight_smile:

    I have attached the two following files which you can replace on your installation until fixed on next version update:

    wp-content/plugins/coursepress/2.0/asset/js/front.js

    and

    wp-content/plugins/coursepress/2.0/include/coursepress/data/shortcode/class-coursetemplate.php

    You can download files unzip them and replace accordingly.

    Please let us know if these fixes this issue for you!

    Thanks!

    Panos