• Resolved dwright21

    (@dwright21)


    Hello,

    I am trying to disable the cover image on the user profile page. I have copied the template “cover.php” file to my “wpum” folder within my child theme. But I don’t know what I need to change within the file to disable the cover image?

    the code in cover.php is:

    <?php
    if ( ! defined( ‘ABSPATH’ ) ) exit;

    $cover_image = get_user_meta( $data->user->ID, ‘user_cover’, true );

    ?>

    <div id=”header-cover-image” style=”background-image: url(<?php echo esc_url( $cover_image ); ?>);”>
    <div id=”header-avatar-container”>
    user ) ); ?>”>
    <?php echo get_avatar( $data->user->ID, 128 ); ?>

    </div>
    </div>
    */

    Thank you in advance,
    Duncan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP User Manager

    (@wpusermanager)

    Are you looking to remove the cover image entirely from the registration process and therefore it won’t show on the profile page? Or just hide it after initial registration?

    Thread Starter dwright21

    (@dwright21)

    Hiding it after initial registration would be fine.

    Cheers

    Plugin Author WP User Manager

    (@wpusermanager)

    You can remove all code after if ( ! defined( 'ABSPATH' ) ) exit; then it won’t show at all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable profile banner’ is closed to new replies.