• Resolved camposwolf

    (@camposwolf)


    Greetings, I’m using portfolio posts to publish posts I don’t want to show in front page. The problem is that featured image do not appear (although I noted the rendered page source code does have the correct line with the image URL). Instead, the title is presented over a black background.

    I’ll appreciate any light on this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @camposwolf)- did you get this sorted out? I visited your portfolio archive and I do see the featured images as the background of each post:

    https://thewolf.report/portfolio/

    Let me know if you’re all set.

    Thread Starter camposwolf

    (@camposwolf)

    Hi, Kathryn. Thank you for reaching out to me.
    I was able to workaround the issue (but it’s still an issue).
    If is there anyone with the same problem, what I did was to add these lines into child theme’s functions.php:

    add_filter(‘body_class’, function (array $classes) {
    if (in_array(‘single-jetpack-portfolio’, $classes)) {
    return array_merge( $classes, array( ‘single-format-standard’,’single-thumbnail’ ));
    }
    else { return $classes; }
    });

    This will make a portfolio page to behave like a post page.

    Regards.

    Moderator Kathryn Presner

    (@zoonini)

    Thanks for posting your workaround in case it helps others.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Image Not Shown On Portfolio Posts (Projects)’ is closed to new replies.