SOLVED: Problem styling [data-brx-qr-count] in builder

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hello,

I’m trying to target [data-brx-qr-count]. It looks fine on the frontend. But in the builder the button breaks. Live link

Frontend

Builder

Hi @Victor1999,

what do you mean by that:

Can you copy-paste your related structure (button) , so I can see it on my install?

Thank you,
Matej

Hi @Matej, I have used the dynamic data {query_results_count_filter} in the button element.

{"content":[{"id":"plxjso","name":"div","parent":"ybgopm","children":["ecpbei"],"settings":{"_hidden":{"_cssClasses":"tab-title"}},"label":"Title"},{"id":"ecpbei","name":"text-basic","parent":"plxjso","children":[],"settings":{"text":"Title 2"}},{"id":"ratpcr","name":"block","parent":"ogvfws","children":["udqdcw","eqldzx"],"settings":{"_hidden":{"_cssClasses":"tab-content"}},"label":"Tab content"},{"id":"udqdcw","name":"block","parent":"ratpcr","children":["jwwvwr"],"settings":{"_hidden":{"_cssClasses":"tab-pane"}},"label":"Pane"},{"id":"eqldzx","name":"block","parent":"ratpcr","children":["zltxvj"],"settings":{"_hidden":{"_cssClasses":"tab-pane"}},"label":"Pane"},{"id":"zltxvj","name":"text","parent":"eqldzx","children":[],"settings":{"text":"Content goes here .. (2)"}},{"id":"jwwvwr","name":"block","parent":"udqdcw","children":["yhpzwz"],"settings":{"_display":"grid","_gridGap":"20","_gridTemplateColumns":"1fr 1fr 1fr 1fr"},"label":"Grid"},{"id":"yhpzwz","name":"block","parent":"jwwvwr","children":["lpardk","guqxlj"],"settings":{"hasLoop":true,"query":{"post_type":["product"],"posts_per_page":"5"},"_rowGap":"10"},"label":"Loop item"},{"id":"lpardk","name":"image","parent":"yhpzwz","children":[],"settings":{"image":{"useDynamicData":"{featured_image}","size":"large"}},"themeStyles":[]},{"id":"guqxlj","name":"heading","parent":"yhpzwz","children":[],"settings":{"text":"{post_title}"}},{"id":"wqcsms","name":"section","parent":0,"children":["xqnyrd"],"settings":[]},{"id":"xqnyrd","name":"container","parent":"wqcsms","children":["dhmuuf","wyqmwv"],"settings":{"_rowGap":"20"}},{"id":"dhmuuf","name":"button","parent":"xqnyrd","children":[],"settings":{"text":"Results {query_results_count_filter:ibkxxi}","_cssCustom":"#brxe-dhmuuf span[data-brx-qr-count] {\n  color: white;\n  background-color: black;\n  width: 25px;\n  height: 25px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n","_background":{"color":{"hex":"#c300ff"}},"_typography":{"color":{"hex":"#ffffff"}}},"selectors":[]},{"id":"wyqmwv","name":"block","parent":"xqnyrd","children":["ibkxxi"],"settings":{"_display":"grid","_gridGap":"20","_gridTemplateColumns":"1fr 1fr 1fr 1fr"}},{"id":"ibkxxi","name":"block","parent":"wyqmwv","children":["mhwemh","mnmljl"],"settings":{"hasLoop":true,"query":{"post_type":["product"]},"_rowGap":"10"}},{"id":"mhwemh","name":"image","parent":"ibkxxi","children":[],"settings":{"image":{"useDynamicData":"{featured_image}","size":"large"}},"themeStyles":[]},{"id":"mnmljl","name":"heading","parent":"ibkxxi","children":[],"settings":{"text":"{post_title}"}},{"id":"srxcvn","name":"heading","parent":"abuztn","children":[],"settings":{"text":"{post_title}"}},{"id":"jprdcs","name":"block","parent":"gjzhqb","children":["wnrpmc"],"settings":{"_display":"grid","_gridGap":"20","_gridTemplateColumns":"1fr 1fr 1fr 1fr"}},{"id":"wnrpmc","name":"block","parent":"jprdcs","children":["gmcnvk","bocsey"],"settings":{"hasLoop":true,"query":{"post_type":["product"]},"_rowGap":"10"}},{"id":"gmcnvk","name":"image","parent":"wnrpmc","children":[],"settings":{"image":{"useDynamicData":"{featured_image}","size":"large"}},"themeStyles":[]},{"id":"bocsey","name":"heading","parent":"wnrpmc","children":[],"settings":{"text":"{post_title}"}}],"source":"bricksCopiedElements","sourceUrl":"https://try.bricksbuilder.io/t4ccb117","version":"1.12.4","globalClasses":[],"globalElements":[]}

Hi @Victor1999,

thank you so much. I was able to replicate it, and I’ve added it to our local tracker. I was confused about [data-brx-qr-count] as I thought this was some kind of a shortcode.

Thanks,
Matej

We’ve addressed this in Bricks 2.3.13, now available as a one-click update in your WordPress Dashboard.

Query results count text inside a Button now follows the same layout in the Builder as on the frontend.

Please read the changelog entry before updating, and let us know if you experience any issues.