Question

I have a wordpress blog and am wanting to put the youtube subscribe widget in the widgets bar. The only thing is that it is really ugly :(

It is an iframe so I cant change the CSS easily but I think maybe I can do it with jQuery?

<iframe id="fr" src="http://www.youtube.com/subscribe_widget?p=[add  YouTube Username here]" style="overflow: hidden; height: 105px; width:  300px; border: 0;" scrolling="no" frameBorder="0"></iframe>

I just want to get rid of the black border really.

would love some help. Thanks

Was it helpful?

Solution

This is not possible to do with jQuery - this kind of activity is blocked by the same-origin policy. It's a useful thing to do, but also opens up all kinds of security holes.

However, the widgets themselves are customizable. Take a look here for some ideas.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top