Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28747

    Hi,

    i use the LearnDash Plugin. LearnDash creates Pages or better to say just a placeholder for its courses, but it’s not adding them to the pages section of wordpress. It uses the code of single.php.

    I was told to make a copy of single.php and rename to single-post-type-of-learndash.php

    But i use the code of page.php in my new single page for learn dash

    Which works.

    But what do i have to do, to get rid of the sidebar and make that page a fullwidth?

    Just removing the the php code for the sidebar doesnt make the side a fullwidth :D

    Thanks in advance

    #138502

    Hi,

    I’m actually not sure if there is better way to do it but this is how i would do;

    First in Single.php file change the code in line 28 from

    <div class='content units <?php avia_layout_class( 'content' ); ?>'>

    to

    <div class='content units twelve'>

    Then delete these lines between 51-57

    <?php

    $avia_config = "blog";

    //get the sidebar

    get_sidebar();

    ?>

    Then add this code to Quick CSS

    .content { border-right-style: none; }

    I hope that works for you

    Regards,

    Yigit

    #138503

    GREAT THANKS

    #138504

    Hey,

    Glad Yigit fixed it. :)

    Cheers,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘In single.php how to remove the Sidebar and changing it to Fullwidth?’ is closed to new replies.