Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

If you Like the Asteria Lite Theme and want to Keep it free forever Please Rate it on Wordpress.org (It only takes a few seconds)
Viewing 10 posts - 1 through 10 (of 10 total)

Hide sidebar on posts

Home Forums Free Theme Support Asteria Lite Hide sidebar on posts

  • #109758

    Mickael

    Hi,
    Is there any possibility to hide the sidebar on specific posts ?

    I tried this :
    <?php if(is_single(ID_of_my_post)){
    //nothing
    }else{get_sidebar();}?>

    But I always have an empty area on the right side of the post.

    Thanks 😉

    #109760

    Towfiq I.

    administrator

    send me the page address where you dont want the sidebar to show.

    #109763

    Mickael
    #109765

    Towfiq I.

    administrator

    Add this to your Custom CSS:

    body.postid-59 ..single_wrap{width: 100%!important;}

    #109767

    Mickael

    Thanks but doesn’t work, the width doesn’t change. (I don’t have any other custom css lines)

    #109769

    Towfiq I.

    administrator

    sorry. try this:

    body.postid-59 .single_wrap{width: 100%!important;}

    #109774

    Mickael

    Thank you, that works ! 🙂

    One more thing, is it possible to show just posts from specific category in the front page ? using in_category(‘project’) ?

    #109775

    Towfiq I.

    administrator

    you can already do that from Asteria Options> Frontpage >Frontpage Posts

    #109778

    Mickael

    Easier… ^^ Thank you again !

    #109779

    Towfiq I.

    administrator

    If you like the theme and the support please rate the theme:

    Asteria Lite

    it would be a great help.

    Thanks

You must be logged in to reply to this topic.