1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

How do I add images to a text module in DIVI builder

Discussion in 'Free Divi Community Forum' started by btremaine, Jun 25, 2018.

  1. btremaine

    btremaine New Member

    I have a blog and I'm trying to add images to a text module. The placement and spacing of the images seems to end up arbitrary. I've been using the add media menu to insert images. My blog can be seen here:
    http://tremaineconsultinggroup.com/houghs-transform-versus-watershed-algorithm/

    Can I use a single text module or do I need to break up my 2000 word text into several text modules interspersed with image module? I sure hope not. I would like to have the text flow around the images or at least put two images on a single row with proper spacing to text above and below.

    Thanks in advance for any help, I've spent a lot of time on this and haven't come up with a good solution.


    Brian
     
    Ingo Schauser likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

  3. Ingo Schauser

    Ingo Schauser New Member

    Hi Brian - have you found out abut how to do? I'm fighting exactly same problem and feel quite frustrated. Ingo
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Digital Marketing' Divi layout for all Pro members:View Demo
  4. ryanct

    ryanct New Member

    Hi, you can achieve this by clicking the add media button inside the text module...but the trick is to add the image while you are in TEXT MODE (not visual mode). Select the image you want to use and insert. Now go find the code for the image, it will look something like this: <img src="http://rdkconsulting.co.za/wp-content/uploads/2019/02/luca-bravo-207676-unsplash-FILEminimizer-1.jpg" width="1152" height="768" alt="" class="wp-image-46823 alignnone size-full" />. Now you must edit a few things... 1) the width, 2) the height, 3) the alignment.

    1) currently: width="1152"
    change it to: width="30%" ((you can play around with the % value until it works correctly)
    2) I normally do the same % with the height
    height="30%"
    3)it has to either be left or right align for text to wrap around the image. So you would change it from:
    alignnone to alignleft or alignright

    It normally adds the image code right at the bottom of your text. You can just highlight the code starting at <img until /> then cut and paste it wherever you want to add the image.

    EXAMPLE:
    What it would look like at 1st:

    <h3>bleeblabla</h3>
    <p>Morbi leo mi, nonummy eget, tristique non, rhoncus non, leo. Nullam faucibus mi quis velit. Integer in sapien. Fusce tellus odio, dapibus id, eleifend sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque porta. Vivamus porttitor turpis ac leo. <br>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi gravida libero nec velit. Morbi scelerisque luctus velit. Etiam dui sem, fermentum tincidunt scelerisque libero. Maecenas libero. Etiam dictum tincidunt diam. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. Suspendisse nisl. Sed convallis magna eu sem. Cras pede libero, dapibus nec, pretium sit amet, tempor quis, urna. </p> <img src="http://rdkconsulting.co.za/wp-content/uploads/2019/02/luca-bravo-207676-unsplash-FILEminimizer-1.jpg" width="1152" height="768" alt="" class="wp-image-46823 alignnone size-full" />

    WHAT IT SHOULD LOOK LIKE:

    <h3>bleeblabla</h3>
    <p>Morbi leo mi, nonummy eget, tristique non, rhoncus non, leo. Nullam faucibus mi quis velit. Integer in sapien. Fusce tellus odio, dapibus id, eleifend sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque porta. Vivamus porttitor turpis ac leo. <br>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi gravida libero nec velit. <img src="http://rdkconsulting.co.za/wp-content/uploads/2019/02/luca-bravo-207676-unsplash-FILEminimizer-1.jpg" width="30%" height="30%" alt="" class="wp-image-46823 alignright size-full" />Morbi scelerisque luctus velit. Etiam dui sem, fermentum tincidunt scelerisque libero. Maecenas libero. Etiam dictum tincidunt diam. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. Suspendisse nisl. Sed convallis magna eu sem. Cras pede libero, dapibus nec, pretium sit amet, tempor quis, urna. </p>

    __________________________________________________________________________________________________________________-
    _____________________________________________________________________________________________________________________
    Screenshot_3.jpg
     
  5. Dave Kesselring

    Dave Kesselring New Member

    I've found that if, as you are adding the image via the add media button, while you have the image highlighted, if you go over to the description and scroll down you will see a drop down box that gives you the choice to left or center the image. If you left justify the image, the text should wrap.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade mega menu design for your Divi site without using any plugins:View Demo