Hi @philw123,
Thank you for your kind words. Yes, I realized that I have not created documentation for customizing the card yet. I will create it soon in the coming days.
For now, there is no setting to easily changes the card template yet. However, with some degree of PHP and WordPress scripting knowledge, you can easily replace the default template file with the one you created. Here is an example of how to replace the template file:
function my_embed_card($file, $name) {
if ($name === 'embed-content') {
$file = '/path/to/your/template/file.php';
}
return $file;
}
add_filter('embed_extended_template', 'my_embed_card', 10, 2);
As for the second question, I can’t say what is the problem without looking at the site itself. To check if there is a conflict with other plugins/themes, try to temporarily disable all other plugins and use a default theme (e.g., Twenty Twenty). If the settings page not blank anymore, try to enable it one-by-one until the problem happens again.
I hope it answers your questions.
This is a big help, thank you. When I get the opportunity I’ll check for conflicts with other plugins.
Thanks again.
I’m also having the second problem. The setting page is blank. The console shows:
GET https://example.com/wp-content/plugins/embed-extended/assets/js/admin.js?ver=5.6 net::ERR_ABORTED 404 (Not Found)
What’s more, the embedding isn’t working. It shows the same error in the block editor. I’ve disabled all other plugins and using the default theme.
Hello @chenmantous,
Thank you for reporting the problem.
Could you let me know a bit more detail about the environment on your site? For example are the WordPress version, PHP version, Apache/NGINX/LiteSpeed, as well as the browser (Chrome/Firefox/etc) being used to open the page.
Hi @philw123 and @chenmantous,
I think I have found the problem. Some files seem to be missing on the version 1.2.2 update, which causes some issues like the missing settings page.
I have just released a new version update (1.2.3) that added those missing files. Please update the installed plugin on your site to the latest one to fix the problem.
Thank you.
@rsusanto Never mind. I think it’s because the page I put in doesn’t support to be embedded.