badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

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

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.