How to Customize Divi Portfolio Module

In today’s tutorial I will show you how to create a beautiful portfolio section for displaying your work in a nice and clean way.

Portfolio is a very important part of every business website. Customers want to see some samples of our work before they will hire us so it is crucial to showcase our work in a pleasant way.

As you know, default Divi Portfolio Module isn’t too attractive but it’s highly customizable. We can change colors, font sizes, overlay icon and overlay color in module customizer but what if we want to add some text animations or repositioning elements? Well we can do that too. With a few lines of CSS we can transform default Divi Portfolio module into a nice Portfolio section with hover effects and animations that will attract your potential customers.

In this tutorial I will show you how to customize Title and Meta Texts. We will hide them by default and make them sliding down on mouseover. We will also add a custom background overlay using CSS brightness filter, so when user hover on portfolio item he will be able to easily read texts. Let’s get started!

  • You will need to have the Divi Theme by Elegant Themes installed.
  • You can follow this tutorial or download Ready-To-Use Divi Builder section with CSS code embedded.

Live Preview    Download Section

1

Add Portfolio items

First thing we need to do is to add Portfolio items to our website so they will be displayed when we use Portfolio module.

  1. Go to Projects/Add New
  2. Name your project and upload Featured Image
  3. Click Publish

* You can also add project description and more images however for this tutorial we only need Featured Images setup.

2

Add Section, Row and Portfolio Module

For this tutorial we will add row with 1 column and we will place Portfolio Module inside it.

  1. Add new Standard Section and select 1 column layout
3

Apply CSS Class and customize Row Settings

In this step we need to apply a few settings that will make our section full width and remove spaces between images. We will aslo add class that will apply Custom CSS to our Portfolio Module.

1. Open Row Module Settings and in Design tab set the following options:

2. Go to Advanced tab and add CSS Class  b3_portfolio

4

Customize Portfolio Module

Open Portfolio Module Settings and customize as following:

  1. In Content tab set Pignation OFF (optionally)
  2. Go to Design tab and select Grid Layout
  3. Set Zoom Icon and Hover Overlay Color to transparentFor this tutorial we don’t want to display icon however you can experiment. Background must be transparent because we will use custom CSS Brightness Filter to execute dark image hover effect.

3. Set Text Color to White and Text Orientation to Center

4. For Title Text we use Montserrat font with Bold option enabled.

5. For Meta Text enable Uppercase Mode and add 1px Letter Spacing.

4

Adding CSS

In this last step we will add some CSS to the Divi/Theme Options/Custom CSS section or you can just copy and paste it in to your style.css file located in your child theme folder – Appearance/Editor. Make sure to save your work.

This is it! Thank you for your attention! This was my sixth tutorial and I’ve got more to come! If you enjoy these, please let me know in the comments below.

Maciej Ekstedt

Maciej Ekstedt

Creative Director

Get Divi Icons PRO today!

We have a sweet deal for you! You can get the best icon plugin for Divi with a 10% discount! Use the coupon code DIVIICONS10 at checkout!

29 Comments

  1. Andy

    Just the way tutorials should be… Clear, concise, with pictures so no confusion. Good tutorial with a nice effect. Thanks very much for your efforts. I really like your work.

    All the best

    Andy

    Reply
      • Kane

        Hello. Is there a way to make this in “masonry” style?

        Reply
  2. Dehn Merrill

    Although I still work with Divi every day, maintaining and creating sites still….I haven’t been hanging in the community much….and I still make it a point to catch your tut’s and share them back onto the socials I crawl.

    Absolutely love your work and appreciate the time you save me.

    Reply
    • Maciej Ekstedt

      Hey Dehn,
      It’s a pleasure to create something nice and share with the community. I’m glad you like it 🙂

      Reply
  3. Kate

    How do you make, upon click, to view larger image?

    Reply
    • Maciej Ekstedt

      Hi Kate, Divi Portfolio module opens project page by default. You could instead use Gallery module to open image lightbox. You would have to tweak CSS, replace this:

      .et_pb_portfolio_grid .et_pb_portfolio_item

      with this:

      .et_pb_gallery_grid .et_pb_gallery_item

      Reply
      • Antonio

        Hi Maciej, I’m sought of a newbie when it comes to Divi but i can make my way around to tweak and fix. I want to go a bit deeper on Kate’s Question. I would love to do what you did above with the filterable effect, but would love to just have people click on the image and just have it zoom foward without going to Project page. Could you explain a bit better on how to do this ? Example

        1. create child theme
        2. place this code in this folder
        3. place this code in this folder
        4. use this moduler

        Thanks in advance

        Reply
        • Maciej Ekstedt

          Hi Antonio 🙂
          For sure it is possible. You would only have to use Gallery Module for that but CSS to apply this effect to the Gallery module would be slightly different. Unfortunately we do not have a tutorial on how to add it to Gallery Module yet, but this is something we can work on soon 🙂

          Reply
  4. Mitch Powell

    Hi Maciej,
    This is a great tutorial, exactly the way I would like to do my portfolio.
    Thank you,
    Mitch

    Reply
  5. olly

    hi – will this customisation work for a filterable portfolio section, ‘as is’?

    thanks

    Reply
    • Maciej Ekstedt

      Unfortunately not Olly. It won’t work with filterable portfolio module “as it is” and some tweaks would have to be applied.

      Reply
  6. Leo Villanova

    Excellent.
    I´ve been searching for a solution like this and yours was the easiest and more effective.
    Thanks.

    Reply
  7. Jonhy

    Hi, I’m very happy with your work, I think the divi theme people should pay more attention to the filterable portfolio module that does not have the option to customize the menus and effects in the images …

    Thank you for your attention

    Reply
  8. Richard

    Very nicely done. Is there a way to add the category menu above the grid? And can a portfolio item in the grid link to a URL, not the project page?

    Reply
  9. Kasia

    Great tutorial, makes me want to upgrade my existing portfolio modules 🙂

    Reply
  10. Cat

    Amazing! Thank you so much, my portfolio page has driven me mental for years (yes, years!) It was always just meh 😐 Now I am so happy with it thanks to you and your wonderful tutorial 🙂

    Reply
  11. Henry

    Hi,
    Thank You for tutorial,
    It works, but still align to left, I have only 3 items in row and need align it to center.

    How resolve it?
    https://imgur.com/a/4ArpxX6

    Reply
    • Maciej Ekstedt

      Hi Henry,
      Divi by default display 4 images in Portfolio module. To change default Divi settings and display only 3 items you would need some custom coding and several fixes to make it responsive. I believe the best and the easiest solution is to add one more image and have finally 4 images for this module.

      Reply
  12. Matt

    Hold the phone… I added the css identifier to the module not the row. It works now. I juts have to edit the spacing of the title and meta. When my title is too long it overlaps into the meta.

    Reply
  13. Christopher T Allen

    You mentioned a description could be added? I’ve been messing with it, but I can’t seem to figure out how. Any pointers?

    Reply
  14. Bill Even

    Well done. I wish all tutorials were laid out like this.

    Reply
  15. Jade

    Hi there. Great tutorial. I now have my portfolio displaying in a grid, and I have added small borders to suit the site. What I can’t get to work is the hover effect. I have followed all the steps? Any ideas what could be causing this?

    https://www.theweddingplannerswhitsundays.com

    Reply
    • Maciej Ekstedt

      Hello,

      It seems that you have used Filterable Portfolio module on your website. Unfortunately this tutorial explains how to apply this effect to Portfolio module. To make it working with Filterable Portfolio module, some classes in CSS would have to be changed.

      Reply
      • Miklos Takacs

        Hello, would you tell us which classes should be changed in order to work with filterable portfolio?

        Reply
        • Matthew Upton

          I just modified the code to work with the Filterable Portfolio module, with a few tweaks to fit the design of the site I’m working on. Not sure how it looks on mobile yet, but it’s a start. You can see it in action here: http://talleya.wpengine.com/work/

          /*** B3 PORTFOLIO ***/
          .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item h2.et_pb_module_header, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item:hover h2.et_pb_module_header, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item p.post-meta, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item:hover p.post-meta, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item:hover img, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item img {
          -webkit-transition: all .6s ease-in-out;
          -moz-transition: all .6s ease-in-out;
          transition: all .6s ease-in-out;
          }

          .b3_portfolio h2.et_pb_module_header {
          display: none;
          position:relative;
          margin-top: -140px!important;
          padding: 0 10px!important;
          z-index: 999999!important;
          }

          .b3_portfolio p.post-meta {
          display: none;
          position:relative;
          margin-top: 0px!important;
          padding: 0 10px!important;
          z-index: 999999!important;
          }

          .b3_portfolio .et_pb_portfolio_item:hover h2.et_pb_module_header {
          display: block;
          }

          .b3_portfolio .et_pb_portfolio_item:hover p.post-meta {
          display: block;
          margin-bottom: 30%;
          }

          .et_portfolio_image:hover .et_overlay {
          display: none;
          }

          .b3_portfolio .et_pb_portfolio_item {
          background-color: #8ebd3e!important;
          overflow: hidden!important;
          max-height: 227px!important;
          }

          .b3_portfolio .et_pb_portfolio_item:hover img {
          opacity: 0.6!important;
          /*filter: blur(5px);
          -webkit-filter: blur(5px);*/
          }
          @media only screen and (max-width: 980px) {
          .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item h2.et_pb_module_header, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item p.post-meta {
          width: 33.3%;
          }
          }
          @media only screen and (max-width: 768px) {
          .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item h2.et_pb_module_header, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item p.post-meta {
          width: 50%;
          }
          }
          @media only screen and (max-width: 480px) {
          .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item h2.et_pb_module_header, .b3_portfolio .et_pb_portfolio_item .et_pb_grid_item p.post-meta {
          width: 100%;
          }
          .b3_portfolio .et_portfolio_image img {
          width: 100%;
          }
          }

          Reply
          • Matt

            Hi Matthew,

            I used the code you posted and it works great. Any update on it working better for mobile?

  16. Gary Tucker

    Just what the Dr. ordered! Thank you!

    Reply

Submit a Comment

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

Pin It on Pinterest

This site uses Cookies to improve your online experience. By continuing to use this site without changing your cookie preferences we will assume that you are agreeing to our use of cookies. For more information visit ourPrivacy Policy.
Understood