• Resolved samuraisatoshi

    (@samuraisatoshi)


    like the title states, the frontpage image is not what i want. for some weird reason, the frontpage image that i selected on the yoast seo social facebook settings is not showing up and instead my latest blog posts image is used as the frontpage image.

    i have enabled og meta data

    and i have added my facebook id

    the default image works thought.

    any help is appreciated. much love!

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter samuraisatoshi

    (@samuraisatoshi)

    correction, the default image only works for pages and posts, and not the home page

    I have the same problem.
    This happens with themes that don’t have a static home page, but a dynamic one, and require to set “your latest post” in “Setting / Reading” wordpress Settings.
    It’s very annoying to see new features that always create problems… please at least give the possibility to disables all these new “features”…

    • This reply was modified 6 years, 4 months ago by mulkitpin.

    @samuraisatoshi

    You can fix this (at least until they fix it on some next updates) modifing this core file

    /wordpress-seo/frontend/class-opengraph-image.php

    go to

    /**
    * Sets the images based on the page type.
    *
    * @return void
    */
    private function set_images() {
    /**
    * Filter: wpseo_add_opengraph_images - Allow developers to add images to the OpenGraph tags.
    *
    * @api WPSEO_OpenGraph_Image The current object.
    */
    do_action( 'wpseo_add_opengraph_images', $this );
    switch ( true ) {
    case is_front_page():
    $this->set_front_page_image();
    break;

    and change to this

    /**
    * Sets the images based on the page type.
    *
    * @return void
    */
    private function set_images() {
    /**
    * Filter: wpseo_add_opengraph_images - Allow developers to add images to the OpenGraph tags.
    *
    * @api WPSEO_OpenGraph_Image The current object.
    */
    do_action( 'wpseo_add_opengraph_images', $this );
    switch ( true ) {
    case is_front_page():
    // $this->set_front_page_image();
    break;
    • This reply was modified 6 years, 4 months ago by mulkitpin. Reason: typo
    • This reply was modified 6 years, 4 months ago by mulkitpin.
    Thread Starter samuraisatoshi

    (@samuraisatoshi)

    bless your soul mulkitpin.

    Plugin Support devnihil

    (@devnihil)

    @samuraisatoshi @mulkitpin Can you please confirm you are using the most recent Yoast v7.8? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/

    If you have confirmed that you are updated this to newest version, we expect this to be a bug. We’re actively using the bug tracking on our GitHub repository so your best next step would be to create a new issue for our developers at https://github.com/Yoast/wordpress-seo/issues/new. You will need an account to create a new issue. If this is your first bug report, please check out: https://kb.yoast.com/kb/how-to-write-a-good-bug-report/.

    Don’t forget to include the URL to this conversation in your bug report.

    Yes, i can confirm that this bug comes with the new 7.8 version.

    • This reply was modified 6 years, 4 months ago by mulkitpin.
    MariusG

    (@marius_codeinwp)

    Hi @mulkitpin,

    Please send us a screenshot of Social → Social → Facebook page. We are interested in comparing the values you have set there for the frontpage to the ones we can found in the source of the homepage.

    We are looking forward to hearing from you.

    The thing is quite simple.
    With theme with “your latest post” set for front page, the facebook og became the latest post’s one in home page.
    If i disable the “is_front_page()” statement in your code, the og became the default one set in Social → Social → Facebook page – default setting.

    With my theme (Helm) i don’t have a “real” homepage page, but it’s dinamically created by theme.
    So Yoast SEO create the og meta with “your latest post” instead of “is_front_page” … or better “is_front_page” works as “your latest post”… and the “is_front_page” setting in social-facebook yoast section doesn’t work.

    • This reply was modified 6 years, 4 months ago by mulkitpin.
    • This reply was modified 6 years, 4 months ago by mulkitpin.
    • This reply was modified 6 years, 4 months ago by mulkitpin. Reason: correct
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We apologize for any inconvenience. A bug report is currently open in our development repository for this issue. You can find and follow the progress of the report in here https://github.com/Yoast/wordpress-seo/issues/10391.

    @mazedulislamkhan
    Thanks to have open a ticket!

    Plugin Support Michael Ti?a

    (@mikes41720)

    You can keep track of the issue in GitHub accordingly — https://github.com/Yoast/wordpress-seo/issues/10391

    Should you have any more details or information to add, please feel free to let us know.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Setting this to resolved to keep the overview. Please continue to keep track in the GitHub issue for any updates. Please feel free to subscribe to the issue in order to get notifications.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘frontpage image is not what i want’ is closed to new replies.