How to create child theme of coursepress 2.0

Hi supporter,
How to create child theme of coursepress to my themes.
Thank you very much.

  • Dimitris
    • Support Star

    Hey there phuongbinh,

    hope you're doing good and thanks for reaching us! :slight_smile:

    In order to do so, you should:
    1. Copy CoursePress theme folder from plugins to themes folder
    Copy /wp-content/plugins/coursepress/2.0/themes/coursepress/ folder and all of its content
    to /wp-content/themes/ folder
    (so in the end should look like /wp-content/themes/coursepress/)

    2. Use previous theme as base for your child theme(s) as described here
    https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/

    Warm regards,
    Dimitris

    • phuongbinh
      • Site Builder, Child of Zeus

      Thanh Dimitris , I will copy to my themes folder.
      I hope CP will don't change structure same of upgrade from 1x to 2x.., Before I create subtheme, after upgrade, it error, and I dont see anything about support to change/convert class from 1x to 2x.
      And now, we must create new subtheme follow 2.0.
      Thank you very much.

  • Dimitris
    • Support Star

    Hey there phuongbinh,

    hope you're doing good today! :slight_smile:

    Courses Slug is a virtual page and in v.2 uses shortcodes to display content.
    In order to change this virtual page view, you should play with the filters provided inside functions in this file
    /coursepress/2.0/include/coursepress/data/shortcode/class-template.php
    like filters for template and content as found in course_archive() function in line #82.

    On the other hand though, you can use shortcodes in a custom page (or even custom page template) and further style them if needed. You can find the complete list of shortcodes in admin area under CoursePress Pro -> Settings -> Shortcodes [sidemenu].

    The [course_list] shortcode is what you should check mostly. You could also disable the "Display Menu Items" option if used already, set your custom page in navigation menu and even use a redirect from default Course Slug page to your custom page.

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.