skip to Main Content

My website is built on WordPress and using the theme Divi. I am writing a new post and using the Divi image module to add images. In the editor the image shows up fine, however when the post is previewed or published, the image doesn’t show up. Upon inspection, the URL for the image has a <br /> in it which is breaking the link to the image.

Any idea why this is happening? Thanks in advance.

Screenshot

2

Answers


  1. Are you putting your image directly with the text editor or a you writing your text separatly ? With divi’s page builder you can add an image to a block or widget, and write the text inside separatly.

    Login or Signup to reply.
  2. I also have the same issue – Divi image module – generates a wrong path of image src.

    I also have no solution, but I built a work around until the cause is found and have concrete solution.

    function change_url_the_content($content){
       $content = preg_replace("/br%20//", "", $content );
       return $content;
    }
    
    add_filter("the_content", 'change_url_the_content', 9999999);
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search