Thread Starter
Neolo7
(@neolo7)
Control shows up only if video added via “Content Body”, but it does NOT work if video attached to the album via “Album Media – Add/Upload” menu.
Hi,
what do you mean by “album post type”? Is it a custom post type created by another plugin?
Can you please provide some more details about your WP configuration (Gutenberg or classic editor, WP version, other plugins)?
Thread Starter
Neolo7
(@neolo7)
Looks like it’s a default WP functionality. Could be also a Theme.
/wp-admin/edit.php?post_type=album
Simply creates a set of media displayed on the page, by choosing from media Library or Uploading. Content box can be empty. That’s where your plugin does nothing. So I had to remove video from media set and insert it in the content box. Looks a bit ugly, but this is the only way to get plugin work.
*Updated first post here with a link to hide it
Last WP version and default editor. Only theme is a photographer theme, it may be reason why I have Albums.
-
This reply was modified 6 years, 5 months ago by
Neolo7.
-
This reply was modified 6 years, 5 months ago by
Neolo7.
WordPress doesn’t have a default album post type.
It’s created by your theme:
https://themeforest.net/item/photon-fullscreen-photography-wordpress-theme/11543656
Sorry, but I can’t reproduce errors that are related to commercial themes.
But you can easily improve the look of the player in your album with a little css by removing the padding of this selector: .album-content .inside.
There’s also an empty p tag below the video that creates extra space and should be removed.
So it may look like this:
View post on imgur.com
Thread Starter
Neolo7
(@neolo7)
I see, thank you for help.
I’ve expected the plugin to intercept internal player regardless of what uses it (commercial theme or content editor etc)
You’re right to expect that, but only if your theme uses the default wp way of embedding videos in your page. If it is providing custom functionality related to video or the way media is embedded, there’s a possibility of conflict. And I can’t debug or see where this conflict is coming from if it’s a commercial theme.
Thread Starter
Neolo7
(@neolo7)
Removing padding from .album-content .inside. does not stretch the video thumbnail. It just moved it to the top left corner.
-
This reply was modified 6 years, 5 months ago by
Neolo7.
This happens when you remove the padding in Dev tools of your browser. You need to resize the browser window afterwards, as the width of the video player is calculated by JavaScript on resize.
When there’s no padding on page load, the width should be calculated correctly.
But anyways this is all related to your theme, so I’m afraid I can’t do anything more to it.
Thread Starter
Neolo7
(@neolo7)
Got it, thank you for your help, now it looks great.
-
This reply was modified 6 years, 5 months ago by
Neolo7.