We announce the release of NewsCard Pro with lots of features. View beautifuldemos

How to set homepage(index.php) full width but keeps other page/posts's sidebar

This topic contains 4 replies, has 2 voices, and was last updated by  Theme Horse Support Team 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #59624

    longruibin
    Participant

    Hi,
    Really like your theme and had gave you a 5 star review at wordpress plugin site.
    Would you please tell me how to set homepage(index.php) to full, but keeps other page/posts(archvie.php with sidebar?
    Thanks a lot,
    have a great day.

    #59625

    longruibin
    Participant

    I set “right sidebar” at LAYOUT settings, and then comment out ://do_action(‘newscard_sidebar’);”,
    then the homepage is set as “no side”, NOT “full width” at all.
    thanks.

    #59635

    Hi Longruibin,

    Thank you for the review and 5 star rating.

    To set homepage to full width just go to Appearance > Customize > Additional CSS and paste below custom CSS code:

    .home:not(.page-template-front-page-template) .site-content .content-area {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .home:not(.page-template-front-page-template) .site-content .widget-area {
        display: none;
    }

    Thank you for using our theme.

    #59639

    longruibin
    Participant

    Hi, Master:
    I put the css in my child theme’s style sheet, and it WORKS!
    Thanks very much and have a great weekend!
    long

    #59705

    You are welcome anytime @longruibin

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

You must be logged in to reply to this topic.