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

    Disable Gutenberg Editor on some ACF pages
    ACF flexible content fields in Breakdance 2.4
    Making a lightbox from a CPT Loop
    Use a featured video in post templates with Breakdance

    Got a question? ask!

    If you have any question about the content on this page, feel free to send me an email by clicking the button below.

    newsletter? sign up!

    Sign up to the newsletter for updates on tutorials, news, and offers.

    Got a question?

    If you have a question about something on this page, send me an email, and hopefully I can answer, and we can solve it!