• Resolved webray20

    (@webray20)


    Currently it shows as 1 column on mobile. How do I make it show as 2 columns on mobile. I would like to continue using simple portfolio, not the other options.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bradvin

    (@bradvin)

    Hi,

    You can make the Simple Portfolio show 2 columns on mobile with some custom CSS.

    Add this code to the custom CSS block, when editing the gallery:

    
    @media screen and (max-width: 480px) {
    	#foogallery-gallery-2.foogallery.fg-simple_portfolio .fg-item {
    		margin: 20px !important;
    		max-width: calc(50% - 40px) !important;
    		min-width: calc(50% - 40px) !important;
    	}
    }
    

    A few notes to help you customize this custom css:

    • Depending on what exactly you are determining to be mobile, the media query value of 480px may need to be adjusted.
    • The margin determines the gutter size. In the above margin: 20px equates to the default 40px gutter.
    • If the margin value is changed the calc() equations need to be updated to reflect it. The equation is simply calc(50% – (margin * 2)).
    • If you want to adjust the number of columns then they need to adjust the calc() equation again. The full equation would be calc((100% / columns) – (margin * 2)).

    We will be looking to add this to the plugin in a future update

    Thread Starter webray20

    (@webray20)

    Worked very well, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Foo Gallery simple portfolio. create 2 columns on mobile’ is closed to new replies.