Transition to 2.0 Problems. -Flickr Embeds.

  • Question
  • Updated 4 years ago
Updated to the new Autofocus 2.0, but my oEmbeds of Flickr galleries shrunk.

live example:

http://aestheticindividual.com/?p=1869
Photo of sup1r1man

sup1r1man

  • 4 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 3
Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
Hi,
I’ll have a fix for this posted by tomorrow.

For now, you can open up /inc/autofocus-images.php and go to line 271:

Change this:
$oembed_url = wp_oembed_get($af_video_url, array( 'width' => 800 ));

to this:
$oembed_url = wp_oembed_get($af_video_url, array( 'width' => 800, 'height' => 600 ));
Photo of sup1r1man

sup1r1man

  • 4 Posts
  • 0 Reply Likes
I also noticed there's a white bar under the embed.

Thanks for the support!
Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
Ok, I’ll have a fix for that posted as well.
Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
Hi,
Version 2.0.2 is now available and it fixes this issue.
Simply re-download the theme using the same download link you received earlier which now gives you version 2.0.2.

Thanks.
Photo of Egon Schmeitz

Egon Schmeitz

  • 4 Posts
  • 1 Reply Like
This almost works, but it doesn't center the image (for me in Safari).
How do I get it to center?

Thanks

Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
Egon,
Do you have a live link? Are you using the oEmbed feature to pull in a single image from Flickr?
Photo of Egon Schmeitz

Egon Schmeitz

  • 4 Posts
  • 1 Reply Like
I got it fixed. I am using the oEmbed (I think).

I changed, in style.css

#content .entry-gallery-container {padding: 0; margin: 0 0 44px; display: none}

to

#content .entry-gallery-container {padding: 0; margin: 0 0 44px; text-align: center; display: none}