badget

Biggest Sale! Special Offer!

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

Hurry up! *Limited time offer*

changing grid column number for mobile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53346
    sozan
    Participant

    Hello,

    Is it possible to change the number of columns on the grid layout only for the mobile? I would like to display only one column on mobile but 3 on desktop.

    Thanks!

    #53421

    Hi Sozan,

    to set the only one column on mobile and 3 on desktop just go Appearance > Customize > WP Portfolio Theme Options > Custom CSS and paste the below CSS code then click on Save button.

    .post-main .post {
        width: 33.33%;
    }
    @media only screen and (max-width: 767px) {
        #main .post-main .post {
            padding: 0;
            width: 100% !important;
        }
    }

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.