Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Cover Photo Does Not Save


  • JeffWillia.ms
    Participant

    @jeffwilliams-1

    Latest version of WP, BP, theme, and all plugins. Theme is Kleo

    Welcome

    For some reason when I upload a cover photo, it does not save. See the issue in this video:

    http://somup.com/cDlf1mdYp

    I’ve cleared cache, deactivated all plugins, and duplicated it to a Demo version I use to test things. The Demo version works perfectly, with the same plugins, settings, and theme.

    Any ideas what the issue is?

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

  • pare81
    Participant

    @pare81

    Hi Guys,

    same Problem on my site? I use wordpress and buddypress latest Versions and latest Version of generatepress theme. I Use my Theme as Childtheme and only on Child-theme the porblem is there. On parent theme all is fine.

    Is there an Info to this Point?

    Thanks and regards
    Patrick


    danbp
    Moderator

    @danbp

    @jeffwilliams-1,

    @pare81
    ,

    did you respect the size instruction ? Sizes are theme dependant and vary from one install to another.
    When it comes to image issues under BP, you’ll need to test your install without any plugin and only a Twenty theme active (never another one) as first and check if you can upload medias.
    If OK, you activate BP and check again.

    You may also verify that the attachment folder exist and has eventually the correct write rights on the server: wp-content/uploads/buddypress/members/USER_ID/cover-image/ Similar path may exist for groups, which use /groups/GROUP_ID/ instead of /members/USER_ID/

    If all is OK with Twenty, WP and BP, you can activate your plugins, one by one and testing after each. If still OK, you activate or install the definitive theme.

    If things went wrong at this stage, you can be sure there is an issue with YOU or the theme.

    You because you have omit a setting or did a wrong setting, or the theme, because all was ok while using a Twenty…


    pare81
    Participant

    @pare81

    Hi danbp,

    Thanks for your reply.
    Worked fine on all Themes, with all my other plugins. Only if I choose the child theme of my Plugin, the cover photo is not shown. If I change to an other theme, the cover photo is shown. Do I switch back to my child theme, the cover photo as away.

    Do I have to do somethin for childthemes? user picture woks, only Cover image has this prob.

    Thanks and regards
    Patrick


    danbp
    Moderator

    @danbp

    OK. Let’s say that the issue is the child theme.

    What is a child theme ? An empty style.css containing a header information saying to WP, hey here is a child !

    Another file can be there: functions.php. This file is empty and will be filled in the time with custom functions.

    With BuddyPress, you can have a “buddypress” folder, containing rewamped templates. For example, the profile header template or your member directory page…

    As BP template where recently modified (2.7), you have to verify your template customization (if any). See here if it helps:

    Template Updates 2.7

    If you’re not concerned by templates, you have to check your custom functions or custom JS (if any)

    And voila.


    pare81
    Participant

    @pare81

    Hi Guys,

    I’ve found an solution.

    For childthemes you have to check the following infos:

    BuddyPress Cover Images

    Here is what I have paste to my child themes functions.php, and now the cover image works:

    function your_theme_cover_image_css( $settings = array() ) {
        /**
         * If you are using a child theme, use bp-child-css
         * as the theme handel
         */
        $theme_handle = 'bp-child-css';
    
        $settings['theme_handle'] = $theme_handle;
    
        /**
         * Then you'll probably also need to use your own callback function
         * @see the previous snippet
         */
         $settings['callback'] = 'bp_legacy_theme_cover_image';
    
        return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );

    danbp
    Moderator

    @danbp

    Good check ! I always forgot this…


    JeffWillia.ms
    Participant

    @jeffwilliams-1

    @pare81

    Did you have to do anything other than paste the code into your child theme functions.php file?

    I tried it, but was unsuccessful.

    Thanks!


    pare81
    Participant

    @pare81

    If you use standard buddypress css, you have nothing to do. but if you have create an folder buddypress/css/buddypress.css within your childtheme folder, you have to define some css styles.

    Best
    Pare


    JeffWillia.ms
    Participant

    @jeffwilliams-1

    The solution:

    Go to…

    /wp-content/themes/child-theme/BuddyPress/css

    Rename the CSS folder.

    This causes the parent theme folder to load instead, and everything displays properly.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar