SOLVED: Dynamic data not working with logo element

Bricks Version: 1.5
Browser: Chrome 104.0.5112.101
OS: macOS 12.5.1
Local Environment: Laravel Valet 3.1.9, PHP 8.1, Nginx 1.23.1, MySQL 8.0.27, Bedrock by Roots, WP 6.0.1

I’m trying to add a logo element with the image URL pointing to an images folder within the child theme.

First, I wanted to add it dynamically by using the dynamic field and entering this: {site_url}/app/themes/bricks-child/images/logo.svg, but the image won’t render.

Next, I tried using the external URL option entering this: {site_url}/app/themes/bricks-child/images/logo.svg. With this option, the image loads on the frontend, but the builder shows a “broken image” icon with the notice “External URL: Image not found”.

I just started using Bricks so maybe I’m missing something. Any help would be appreciated.

have you tried adding the logo to the media library and trying again??

That works, but for my specific case, I need to load it from the child theme. I figured the dynamic data field would be perfect for that—if it worked correctly.

Have you checked the URL is correct?

There is no /wp-content/ in the URL and not sure where /app/ is coming from

That’s why I mentioned I’m using Bedrock—which changes the paths of the app :wink:

But, as I said, I tried using the External URL option and the frontend (once the page is published) displays the image. It’s just the builder that struggles to render it.

Help from an admin would be great here :blush:

Completely missed that part haha. Sorry

This is now showing as fixed in v1.5.1

Hi Ben,
Welcome to the forum, and thanks so much for your report!

We fixed this bug in Bricks 1.5.1 RC, now available as a manual download in your account.
Please let us know if you are still experiencing issues.

Best regards,
timmse

1 Like