Issue Dynamic Font-size

718 views
Skip to first unread message

rgom...@gmail.com

unread,
May 15, 2016, 9:24:34 PM5/15/16
to Google Web Designer beta

Hi there,

I am trying to control the file size from the feed but this is not working properly on the new GWD version.

Is someone having the same problem?

Thanks

emi...@forward3d.com

unread,
Sep 1, 2016, 12:24:56 PM9/1/16
to Google Web Designer beta
I'm having the same issue.

Not sure if I've used the wrong string, but in my case my text is in a span and the binding seem to happen there:

bind-style-font-size="dynamic_data_file.column_name"

I used xx-large, pixel size and just round integers, but nothing seems to work.

ewschang

unread,
Sep 2, 2016, 7:23:11 PM9/2/16
to Google Web Designer beta
Hi Emilio,

When setting up the binding in Dynamic dialog, the binding for font size should look like this:


In the code, it should show:

bind-style-font-size="emily_test_font_size_data.0.cta_font_size"

Can you double check your file and make sure to select the text element (it can be p or span) and bind the font size to the correct feed object (in my feed it is "cta-font-size")? 

Thanks,
Emily
(GWD Team)

emi...@forward3d.com

unread,
Sep 8, 2016, 8:35:28 AM9/8/16
to Google Web Designer beta
> Can you double check your file and make sure to select the text element (it can be p or span) and bind the font size to the correct feed object (in my feed it is "cta-font-size")?

Will do.

At the moment I discarded the option of controlling the text size via dynamic feed, as we need to change it only in a few instances and I can pass the style directly via the feed.

I'll give it a try as soon as we're done with this.

We're having other size issues (dynamic text gets resized automatically and we can't see how to override that) but I guess this problem will be for another topic.


Thanks!

rgom...@gmail.com

unread,
Sep 22, 2016, 3:38:20 AM9/22/16
to Google Web Designer beta
If someone is having a issue with dynamic font-size on GDW version 1.6.2 is easy to fix:

Go to the tag: <gwd-text-helper id="gwd-text-helper_1" fit-font-size-for-selector="[bind-text],[bind-html]"></gwd-text-helper>

And remove fit-font-size-for-selector="[bind-text],[bind-html]

The final tag need to be:

<gwd-text-helper id="gwd-text-helper_1"></gwd-text-helper>

Cheers,

Emilio

unread,
Sep 22, 2016, 10:47:47 AM9/22/16
to Google Web Designer beta
THANKS!

tan...@tannerchung.com

unread,
Apr 22, 2017, 3:09:51 AM4/22/17
to Google Web Designer beta
Emily. How do apply dynamic font sizes through adwords with this method? It seems like that is a custom schema object. Adwords doesn't have their schema objects exposed anywhere that I could find so we're limited to what's given to us.

ben.g...@thisisdare.com

unread,
Jan 30, 2018, 7:28:38 AM1/30/18
to Google Web Designer beta
Hi, This still doesn't work for me.

I've also checked that the binding code is as Emily details above, which it is.

All other elements controlled by the feed are binding and firing correctly apart from this.

I'm using Version 2.0.5.

I've edited the tag as you suggested and republished the creative and retransformed the feed.

Does the font size column in the feed need to be set up in any particular way? I've just got my font sizes listed as numbers, eg: '20', without any 'px', etc.

This has been set up as the default 'Whole Number' element under the 'Manage Data' tab. Should it be set to something else? Just want to eliminate any earlier steps where I may have messed up.

Many thanks

Ben

Kent

unread,
Jan 30, 2018, 9:42:26 AM1/30/18
to Google Web Designer beta
You should include px in your font-size values in the feed, i.e, "20px". I prefer whole numbers but believe fractional values are acceptable.

Kent
Google Web Designer team
Reply all
Reply to author
Forward
0 new messages