Can't set the colour of Breadcrumbs links and delimiters using dynamic content

Hi folks,

I’m using dynamic content to set the background and foreground colours of certain parts of our layouts, but one thing I’m struggling with is breadcrumbs. I’m using the same dynamic content to set the background and foreground – {{dc:archive:meta key="hero_bg" fallback="#666"}} and {{dc:archive:meta key="hero_fg" fallback="#fff"}} – and this works brilliantly for the headline and text controls, but not for the breadcrumbs:

I’m setting it in exactly the same way, using the same values:

Is there something else I need to be doing?

Thanks,
Anthony

Hi Anthony,

Thanks for reaching out.
It should work, but it will not show the color in the color picker. Please check if you have added the # before the value in the meta field. If you have added it, please check once what exactly the Dynamic Content tag is returning. If it does not help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi Themeco,

I’ve added the details to this page. I’ve output the {{dc:archive:meta key="hero_bg" fallback="#666"}} and {{dc:archive:meta key="hero_fg" fallback="#fff"}} tags into the text of the headline and text controls, and both values from the dynamic content contain the # character at the start of the values, so it should work… but, alas, it’s not.

Be grateful if you could take a look.

Thanks,
Anthony

Hey Anthony,

Thanks for writing in! Regretfully we cannot check the page and element set up because the given credentials are not working for us.

Please double-check. Thanks.

Apologies – the user’s definitely working now.

Hi Anthony,

I found an ACF field with a similar name. If you have set it through the ACF you need to use the Dynamic Content in the following way:

{{dc:acf:field field="hero_bg" fallback="#00ff00"}}

If you want to show in the specific Product Category you need to use this Dynamic Content tag in that category only. Otherwise, it will return the fallback value.

I hope it helps.
Thanks

This isn’t the problem. I can get the return value just fine – as shown in the screenshots above (repeated below), the colours using the dynamic content tags are working just fine – they’re just not working within the Breadcrumbs control:


(as seen at https://www.billesleyscouts.org.uk/product-category/replacements/)

(as seen at https://www.billesleyscouts.org.uk/product-category/scouts/scout-uniform-top/)

You can also see https://www.billesleyscouts.org.uk/product-category/beavers/ or https://www.billesleyscouts.org.uk/product-category/cubs/ or https://www.billesleyscouts.org.uk/product-category/uniform/ for more examples.

Hello @abitgone,

I believe that this is a bug in the latest release. I will forward this issue to our developers for further investigation.

Please bear with us,

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.