• Resolved terrimorgan

    (@terrimorgan)


    Using the shortcode [lifterlms_courses ID=”371″ posts_per_page=”1″] I can correctly get the one course I want.

    But it renders in a 3-column format.
    ul class=”llms-loop-list llms-course-list cols-3″

    If I could just edit out the column setting, it would be great!
    llms-loop-list llms-course-list

    But that isn’t going to work.

    The code already provided for the functions.php file is close — but I don’t want to change the course catalog page. I just want the one item to render in one column on this other one page.

    Am I missing a switch for the shortcode? Is there a way to get just this one page to show only one column?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter terrimorgan

    (@terrimorgan)

    CSS did the trick…

    .llms-loop-list.cols-3 .llms-loop-item {
    width: 100%;
    }

    @terrimorgan,

    This shortcode wasn’t designed with the idea of displaying a single course although it’s obvious that you could do that should you want to…

    I don’t have any settings to control the columns but I probably should… I’ve noted it as a feature enhancement for addition to LifterLMS in a future version.

    The CSS will work, of course.

    Sorry I don’t have a better solution today.

    Best,

    Thread Starter terrimorgan

    (@terrimorgan)

    @thomasplevy

    I’m really good at trying to do things that the ‘system wasn’t designed to do’ 🙂

    For what I need right now, the CSS works.

    The code you have posted for functions.php to control the number of columns is fine. Just didn’t fit what I was wanting. A user-level feature would be ok. But IMHO not necessary.

    Personally, if you had a shortcode that would display only one course wherever it’s put (have that) but with no loop, no columns, that would be perfect!

    @terrimorgan,

    Noted! Thanks for the feedback

    Anything else let us know,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘One course, Three columns’ is closed to new replies.