• Resolved ksdenis

    (@ksdenis)


    I need to turn off the sidebar on a Quiz page (single-llms_quiz) for the full width view.
    My theme has a function to display the content for the single post.
    A part of code:

    elseif( ‘right-sidebar’ == $themeoption_layout ) {
    get_template_part( ‘content’,’rightsidebar’ ); //used content-rightsidebar.php
    }
    else {get_template_part( ‘content’,’nosidebar’ ); //used content-nosidebar.php
    }

    Theme by the default used “rightsidebar”.
    How to use “nosidebar” as a layout on Quiz page?

    https://wordpress.org/plugins/lifterlms/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @ksdenis,

    I can’t really say how you’d modify your theme in order to change the sidebar for a LifterLMS quiz. By default LifterLMS quizzes take on the layout of your theme. This, to me, is a theme customization and I can’t provide you with solutions in this forum.

    If you’d really like us to address this issue for you, consider becoming a LifterLMS Pro member. As a pro member you’ll gain access to premium support where we’ll happily review your theme and provide you with the code you need to do what you’re looking for.

    You may also consider reaching out to your theme and seeing if they have any suggestions on how to modify the theme in order to not have a sidebar for a specific post type.

    Take care,

    Thread Starter ksdenis

    (@ksdenis)

    Thanks! I found a solution – metabox allows to set the post layout. It can be set when editing the post in Custom Fields.
    For my Interface theme: meta_key= interface_sidebarlayout, meta_value = nosidebar.

    You do not know how to write these meta data to LifterLMS template? In order not to do it every time for every quiz, and after plugin will be updated.

    Hey @ksdenis,

    LifterLMS templates *can* be customized but this is not something we would add to the core template as it’s going to be 100% specific to your theme.

    You can create a custom template and include it in your theme or child theme. Follow our override documentation at https://lifterlms.readme.io/docs/template-overview#overwriting-templates-in-a-theme

    Take care,

    Thread Starter ksdenis

    (@ksdenis)

    Good! Please include Custom Fields support in the next releases for Quiz Question Post Type in admin panel, if possible! Now I do it manually.

    @ksdenis,

    We do not accept feature requests via this support forum, if you’d like us to consider a new feature please head over to https://lifterlms.com/contact and submit a feature request.

    Thanks so much and take care,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to change post layout?’ is closed to new replies.