Remon Pel
Forum Replies Created
-
Hi Peer
The plugin uses the de-facto standard size for OpenGraph images. there are no plans to change the format or allow this as a setting.
Also setting the image as a featured image would defeat the purpose of the plugin; it is created because the featured image is normally different than the banner on socials, or at least should be.
If you want your page title and/or logo on top of your featured image, you can easily do that with HTML and CSS, you don’t need a generated image for that. Also, when using an image with a title rendered in it, you would most likely not print the title in the page itself, which is bad for SEO.
Closing due to inactivity. If you need more assistance, please start a new thread and refer to this one.
Hi.
Wondering if you took a chance and tested the beta version. If so, what are your findings? If not, that’s o.k. too ??
Hi
At the moment, there is only one way to achieve this.
If you are using version 1.x (from www.ads-software.com), you can use
add_filter('bsi_text', function($text) { $text = explode('-', $text); $text = trim($text[0]); return $text; });
If you are using version 2.x (from github) you can do the same thing, but with a different filter name.
add_filter('bsi_image_text', function($text) { $text = explode('-', $text); $text = trim($text[0]); return $text; });
Please note that the ‘-‘ in this code is not a simple dash, and it might even not be a dash in your website (as it depends on the settings of your website);
you can take this character from the actual title you see now (and can edit) in the BSI interface with a post or page.
It could even be that your website title is in front of the post title, in that case you would want element [1] instead of [0].
Place the code in an mu-plugin and you’re good to go.
Regards,
Remon.
Interesting… Not making promises here, but I am off-and-on thinking about this.
Is there a specific key, meta-tag, or something like that dlvrit is looking at to decide which image to post to Insta? Because if there is not, it would be hard to present the correct image…
Then, when we have that, we could generate a square image based on the available data; this would not 100% be identical to the current social-image, as — of course — there would be a different section of the background image shown (the center square would probably be used).
Placing logo and text should not be a problem.
The only difficulty I see here would be that you would have to choose an image that is suitable for both the 1200×630 format as well as the 1080×1080 …
Again, no promises, but perhaps we could make an add-on for this …
Hard to say …
is this problem present on all posts?
I can see two ways this debug output can be “disabled”
1. there is no image selected. (clearly you stated this is the case, so, should be fine)
2. the image selected does not exist, or is invalid (resulting in 0x0 dimensions)You could verify this last one in file class.og-image-plugin.php around line 1141, where it says
list($sw, $sh) =
Here you couldvar_dump( $this->logo_options, $sw, $sh );
and see of you get correct data.Can you give me any details on the logo image used? what type is it? how large is it?
Have you tried a different image as logo?I need to check why I was not notified of your question, therefore, sorry for the late reply.
At this time, it looks like you have not enabled or not configured the plugin. I cannot see any evidence in the source of your site that the plugin is in use.
Hi @wala0003
Could you perhaps post the output of the log, produced by
https://hometheaterreview.com/kaleidescape-review-the-ultimate-source-for-movie-lovers/social-image.jpg/?debug=BSI
?Hopefully it will give a hint as to what the problem might be.
Thank you.
Remon.
Thank you M Haseeb, but unfortunately, using wp_mail or the filter does not give me the opportunity to embed (not just attach) an image in the email.
WP_Mail just does not support it.
Thank you anyways for your response, I’ll try to find an alternative.
Remon.
Solution:
install.php line 11
change
include( ‘settings.php’); // Load the files to get the databse info
to
include( __DIR__ .’/settings.php’); // Load the files to get the databse info
Include paths are a funny thing in PHP; always make sure the correct file is included.
(comment deleted)
- This reply was modified 3 years, 1 month ago by Remon Pel. Reason: wrong account
On it’s own line directly above or below the header line, please.