Divi Tutorial – Centering the Filterable Portfolio Buttons

Divi Tutorial – Centering the Filterable Portfolio Buttons

This one is really easy. Yay!

Plus, I thought that if someone were to use the filterable portfolio module, and wanted to center or justify the buttons, then.. yeah.. I’d assume that’s it.

This means that you won’t have to add custom classes or anything.

It’s REALLY simple this time.

To center the buttons like this:

 

Copy paste this snippet into the custom CSS field in the theme options.

.et_pb_filterable_portfolio .et_pb_portfolio_filters {
	display: flex;
	justify-content: center;
}
.et_pb_filterable_portfolio .et_pb_portfolio_filters li {
	margin: 0 4px;
}

 

Done.

To justify the buttons like this:

 

Copy paste this snippet into the custom CSS field in the theme options.

.et_pb_filterable_portfolio .et_pb_portfolio_filters ul {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.et_pb_filterable_portfolio .et_pb_portfolio_filters.clearfix:after, 
.et_pb_filterable_portfolio .et_pb_portfolio_filters.clearfix .clearfix:after {
	display: none;
}

 
[sc name=”customcss”]
 
I think that was the simplest tutorial I’ve published so far. wow!

 

 
[sc name=”learn css”]
 
[sc name=”responsive-ad”]
 
[sc name=”podcast”]
 

 

 

 

Photo by Thomas Martinsen on Unsplash

Leave a Reply

Your email address will not be published. Required fields are marked *

    New tutorials

    Use a featured video in post templates with Breakdance
    ACF repeater fields as accordions in Breakdance
    Breakdance 2 vs. Divi 4
    Breakdance 2 for Agencies

    Why no ads?

    Hi, I'm PK, and I maintain and publish content on this site for two reasons.

    1. To give back to the community. I learned so much from people's tutorials and StackOverflow that I wanted to contribute and help others.

    2. To provide a more structured learning experience. People struggle to find the course that guides them from start to finish, based off of real life experience, and my courses provide that.

    The only "ads" I have here are for my own courses, and maybe an affiliate link, but that's it. They fund the website resources and provide more motivation for me to produce better content.

    Any bit of interest helps. Even sharing with your friends, suggesting my courses to your developer or designer, or subscribing to my YT channel, or joining our Discord. Thanks and I'll see you around!

    There's a newsletter!

    Sign up to the newsletter for the occasional updates on courses, products, tutorials, and sales.