Author Topic: Subscribe on iTunes button width  (Read 2458 times)

Zach Herbert

  • Full Member
  • **
  • Posts: 15
Subscribe on iTunes button width
« on: September 22, 2016, 09:28:08 pm »
Small but annoying bug...

When using the shortcode to insert the Subscribe on iTunes button, the link has a style attribute that sets the width to 135px. But the image is only 110px wide. The extra width forces the button to break to a new line before it should.

[powerpress_subscribe itunes_button="true"]

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Subscribe on iTunes button width
« Reply #1 on: September 23, 2016, 03:21:14 pm »
Thanks for the heads up. It appears iTunes changed the width/height of the button at some point as well as the image from a png to a svg. More interestingly their wizard now sets the width to 165px. e.g. https://linkmaker.itunes.apple.com/en-us/details/73331167?q=Geek%20News%20CEntral&country=us&media=podcasts&genre=all
 
Are you going to be ok with the new image being 165px wide?  https://linkmaker.itunes.apple.com/images/badges/en-us/badge_itunes-lrg.svg

Thanks,
Angelo

Zach Herbert

  • Full Member
  • **
  • Posts: 15
Re: Subscribe on iTunes button width
« Reply #2 on: September 23, 2016, 03:25:34 pm »
Well 165 would mean I'd have to redesign my layout again... But the bigger thing is that image isn't 165px wide. That's the same image that shows for me. But if you pull it into photoshop, it's 110px wide.

I'm using CSS to reset it to the actual width. And I can keep doing it that way. It just seemed that the property should match the actual image.

Zach Herbert

  • Full Member
  • **
  • Posts: 15
Re: Subscribe on iTunes button width
« Reply #3 on: December 23, 2016, 11:29:28 am »
Update: Looks like Apple updated their code again. Now the shortcode doesn't work at all!

Shawn Thorpe

  • Administrator
  • Hero Member
  • *****
  • Posts: 2060
Re: Subscribe on iTunes button width
« Reply #4 on: December 23, 2016, 10:39:34 pm »
There shouldn't be any code Apple can update that'd affect anything happening on your own WordPress site. Can you elaborate more on what's not working with the shortcode?

Zach Herbert

  • Full Member
  • **
  • Posts: 15
Re: Subscribe on iTunes button width
« Reply #5 on: December 24, 2016, 10:26:57 am »
It doesn't display any image.

If you look at the source code on the page, the shortcode is producing a block that calls for an image at:

https://linkmaker.itunes.apple.com/htmlResources/assets/en_us/images/web/linkmaker/badge_subscribe-lrg.png

But if you just try to load that url, it sends you to apple's link builder page instead of returning an image.