• marcelo

    (@marcelobernardo)


    The plugin crops the image to 1200×630. And I followed the Martfury 1000×1000 template pattern
    The blue part of the image says that this value can be changed in fb_og_image filter https://imgur.com/a/vE7jdCP
    How do I make this change?
    How do I make the entire image appear without being cropped?

    View post on imgur.com

    O plugin  recorta a imagem em 1200×630. E eu segui o padr?o do template Martfury 1000×1000

    Na parte azul da imagem fala que esse valor pode ser alterado em fb_og_image filter

    Como fa?o essa altera??o?

    Como fa?o para aparecer a imagem inteira sem ser recortada?

    • This topic was modified 7 months, 3 weeks ago by marcelo.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Daniyal Raza

    (@daniyalraza01)

    Hello @marcelobernardo,

    Thanks for contacting us. Hope you are doing well.

    You can only change image URL using fb_og_image filter

    <?php
    
    add_filter(
        'fb_og_image',
        function( $value ) {
            if ( 'not-required-image' === $value ) {
                $value = 'yourimageurl';
            }
            return $value;
        }
    );
    ?>

    Thanks & Regards,
    WP Experts Support Team

    • This reply was modified 7 months, 2 weeks ago by Daniyal Raza.
    Thread Starter marcelo

    (@marcelobernardo)

    Hello how are you? I hope you are well!

    Thanks for the answer!

    I don’t know where to make this change!

    What would be the folder and file?

    Thanks!

    ————————————————————————

    Olá, como vai? Espero que você esteja bem!

    Obrigado pela resposta!

    N?o sei onde fazer essa alteracao!

    Qual seria a pasta e o arquivo?

    Obrigado!

    • This reply was modified 7 months, 2 weeks ago by marcelo.
    Plugin Support Daniyal Raza

    (@daniyalraza01)

    You need to apply this code in your active theme functions.php file.

    Let me know if you have any further questions. We will help you out.

    Thanks

    Thread Starter marcelo

    (@marcelobernardo)

    View post on imgur.com

    Hello how are you?

    I hope you are well!

    The code didn’t work, it keeps cropping the image.

    How can I solve?

    Yours sincerely,

    ———————————————————————

    View post on imgur.com

    Olá, como vai?

    Espero que você esteja bem!

    N?o funcionou o código, continua recortando a imagem.

    Como posso resolver?

    Atenciosamente,

    Plugin Support Daniyal Raza

    (@daniyalraza01)

    Hello @marcelobernardo,

    The filter fb_og_image is only used to change the image, not the size.

    The recommended image size is 1200×630 from Twitter and Facebook. You can use small images, but you can’t use large images.

    If you have any queries, feel free to ask.

    Thread Starter marcelo

    (@marcelobernardo)

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change fb_og_image filter’ is closed to new replies.