• Resolved autoblogch

    (@autoblogch)


    Hey,

    I usually just use one picture per post and that’s also the featured picture.
    I don’t want the credits to show up on my front page. Is there a way to remove the credits from the front page? I’m happy if the credits show up below the featured image on the single post site only. May I want to remove code or will be there a future checkbox option in the settings?

    Thanks for your help!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter autoblogch

    (@autoblogch)

    I had to deactivate the plugin. The credits were also shown on the four featured articles images between the post and the comment section. Didn’t like that.

    Plugin Version 4.1.0
    Wordpress 5.4.1
    Theme: Maxwell Pro 1.9 by ThemeZee

    Plugin Author pepe

    (@pputzer)

    HI @autoblogch, you can use something like this snippet to not display credits for featured images on the front page (but do show them elsewhere):

    
    \add_filter( 'media_credit_post_thumbnail', function( $content, $html ) {
        if ( \is_front_page() ) {
            return $html;
        }
    
        return $content;
    }, 10, 2 );
    

    You could also disable featured image credits in the settings (to disable them entirely). For advanced customization of your templates, you could use the Media Credit API.

    Thread Starter autoblogch

    (@autoblogch)

    Perfect, thank you @pputzer!

    • This reply was modified 3 years, 11 months ago by autoblogch. Reason: typo
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show credits on featured images but not on frontpage, possible?’ is closed to new replies.