• Resolved tereza06

    (@tereza06)


    Hello,
    I have a website on WordPress 6.2.2. and I use Elementor Free 3.13.4 with the theme Hello Elementor.
    I have a problem with the cover photo. When I upload a cover photo, I see it, but only until I refresh a page. When I do it, the cover photo disappears. When I deactivate Buddy Builder, the cover photo is shown.
    I use BuddyPress Noveau and the Free Starter template in Buddy Builder, so there is a cover photo widget. I tried to set the height of the cover photo but without success. I also tried to create another template with this widget, but also without success.
    So I don’t know where is the problem and how can I repair it. Have you got any other suggestions?
    Thank you for your answer.

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support john

    (@johnweru)

    Hi there,

    Sorry about the issue.

    In this case, please try and navigate to the Wp-Content \Plugins\ stax-buddy-builder\core\widgets\profile-member\Cover.php file and around line 590, remove the code below:

    <div id="header-cover-image"></div>

    Once this is done, replace it with the code below:

    <?php 
    $cover_url= bp_attachments_get_attachment( 'url', array( 
       'item_id' =>  bp_displayed_user_id(),  
    ) ); ?>
    <div id="header-cover-image" style="background-image: url(' <?php echo esc_url( $cover_url ); ?> ') "></div>

    Let us know if this gets to help.

    Kind Regards,

    John

    Thread Starter tereza06

    (@tereza06)

    Thank you for your advice. We tried to edit the theme yesterday and it started to work. I don’t know why and how, but it is ok now.

    Thank you for your answer.

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for the update.

    I’m glad to hear that it is now working.

    Please feel free to reach out once again in case of any questions.

    Kind Regards,

    John

    Hello.

    I had the same problem with the cover photo. With the help of your instructions, now I can replace the cover photo for the “user” profile page. But I still have the same issue with the cover photo for the “group” profile page.

    I tried to edit the following file but it didn’t work. Could you tell me how to resolve this?

    /wp-content/plugins/stax-buddy-builder/core/widgets/profile-group/Cover.php

    Plugin Support john

    (@johnweru)

    Hi there,

    Sorry about the issue.

    In this case, as for the group profile page, please carry out the following:

    Navigate to the stax-buddy-builder\core\widgets\profile-group\Cover.php file and around line 649, remove the code below:

    <div id="header-cover-image"></div>

    Replace it with the code below:

    <?php 
    $cover_url= bp_attachments_get_attachment( 'url', array( 
       'object_dir' => 'groups',  
       'item_id' => bp_get_current_group_id(),  
    ) ); ?>
    <div id="header-cover-image" style="background-image: url(' <?php echo esc_url( $cover_url ); ?> ') "></div>

    I hope this helps.

    Kind Regards,

    John

    Thank you so much for you help.
    I followed your instructions but it didn’t fix the issue.
    I also cleared the cache, unactivated the cache plugin, but it still didn’t work.
    Cover image disappears after refreshing the page.

    It’s OK if it’s not easy to fix the issue. I’m fine.
    Anyway, thank you for your help.

    • This reply was modified 1 year, 5 months ago by wells2023.
    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for keeping in touch with us.

    In this case, I have tested that code and it does actually work if you are using templates from the free version of the plugin. Could you perhaps share with us the final code within your Cover.php file. Please use Pastebin to paste it and send it to us. Also please let us know if perhaps you could be using the pro version of the plugin.

    We look forward to your reply.

    Kind Regards,

    john

    Thank you so much for taking the time.

    Let me share the code of Cover.php in my server.
    https://pastebin.com/U3Payy0J

    I’m using templates from the free version of the plugin.

    I’m not sure if you need it, I would like to let you know the versions of related plugins.

    WordPress 6.3.1
    Elementor 3.16.4
    Elementor Pro 3.16.2
    BuddyPress Builder for Elementor 1.7.4
    BuddyPress 11.3.1
    bbPress 2.6.9

    I still haven’t decided to purchase the Pro version of your plugin. It is under consideration.

    Thank you for your answer.

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for keeping in touch with us.

    In this case, I have tested the code you shared and it does actually work on my testing end. Based on this, I do think that there is something else preventing the rendering of your Group profile cover image. Could you perhaps counter-check that the template you are using for Group Profile has a “Cover” widget within it.

    Let us know how it goes.

    Kind Regards,

    John

    Thank you so much for isolating the problem.
    Now it is working.

    When I edited the group profile templete with Elementor, I copied the “Cover” widget from “Member Profiles Starter” templete to “Group Profile Starter” template. It seems that Cover widget from member template is not working when it is copied to group profile template. That’s reasonable. It’s my mistake. I apologize for my carelessness.

    Thank you for your help.

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for the update.

    I’m glad to hear that the issue is resolved.

    Kind Regards,

    John

    I also had the same problem and I did what you said, the cover appeared perfectly again. thank you very much. For anyone who has the same problem, you can try to solve it.

    Plugin Support john

    (@johnweru)

    Hi there,

    I’m glad to hear that.

    Please feel free to reach out in case of any questions.

    Kind Regards,

    John

    Could you apply these recommended changes to the plugin on the repo? I’d hate to have any future updates undo the work you’ve recommended here.

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for raising this suggestion.

    In this case, we will be fixing the issue in an update.

    Kindly bear with us in the meantime.

    Regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Cover photo’ is closed to new replies.