1

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

dimay
  • 2,768
  • 1
  • 13
  • 22
Lisa
  • 11
  • 2
  • Just an update, I contacted Divi support and they suggested it was a server issue and that I should contact my hosting provider. I did, and we did some troubleshooting but didn't figure out the issue. I enabled Safe Mode which disables all plugins, child themes, etc. and the issue was still present. I also tried turning off media optimization, no luck. They elevated my support ticket to advanced support so I will hopefully hear back from them today. – Lisa Nov 02 '20 at 17:40

2 Answers2

0

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.

Silent observer
  • 79
  • 2
  • 13
  • I'm using the divi image module [link](https://www.elegantthemes.com/documentation/divi/image/). Once the module is placed it asks me to pick an image from the media gallery. I can use a code module and place the image src there and see what happens. – Lisa Oct 30 '20 at 17:15
  • If I place a code or text module and use img src then the image shows up without any issue or edited URL. I wonder why this particular post is having trouble with the image module then... – Lisa Oct 30 '20 at 17:33
0

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);
1inMillion
  • 65
  • 7