Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default Cover Photo Disappears


  • carolziat
    Participant

    @carolziat

    I’m trying to set a default cover photo programmatically. It works the first time I delete the current profile cover photo. But when I refresh the page or go to another page, it disappears and is blank.

    I am editing the file:

    /wp-content/themes/aardvark-child/lib/inc/buddypress-functions.php

    if ( ! function_exists( 'ghostpool_xprofile_cover_image' ) ) { 
     function ghostpool_xprofile_cover_image( $settings = array() ) {
     $settings['default_cover'] = 'cover2-test3.png'; 
     $settings['width'] = 1500;
     $settings['height'] = 300;
     return $settings;
     }
    }

    Of course I add the entire URL of the photo… not just cover2-test3.png.

    If I inspect the page with the cover image there, I can see the URL in the html. But when I refresh it, it is gone.

    Any help is appreciated, thank you.

  • You must be logged in to reply to this topic.
Skip to toolbar