This topic has 4 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #203849
     mirajas
    Participant

    Hi,

    I am having a strange issue with Kleo theme. It does not show the cover image of users on their profile page.

    Initially, after loading the image, the image shows at its desired place. However after reloading the page or moving out to any other option of the profile page. The image disappears.

    After looking into the chrome inspection, I found that the div “#header-cover-image” missing background-image style which points to the cover image path.

    I tried with other themes, it works fine with other default themes but not with Kleo. I tried to check if its related to the issue with any other plugins by disabling them without success.

    So I had to use the below code inside “cover-image-header.php” located at Kleo->Buddypress->Members->Single folder which resolved the issue:

    $user_id = bp_displayed_user_id();

    $attachment = bp_attachments_get_attachment( ‘url’, array( ‘item_id’ => $user_id ) );

    $image_path = $attachment;

    if( !empty( $attachment ) ):

    ?>

    <div id=”header-cover-image” style=”background-image: url(‘<?php echo $image_path; ?>’)”></div>

    <?php

    else :

    ?>

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

    <?php

    endif;

    I just want to know if there is any other better theme option avalable or I need to resort to use this inside child theme.

    #203862
     Kieran_SQ
    Moderator

    Hi,

    I will refer this ticket to one of our developers for review. They’ll be in touch with you as soon as they can, Monday to Friday, East European Time.

    Thank you for your patience,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203996
     Radu
    Moderator

    Hi,

    Cannot see that bug on my local install where i use latest theme,wp and plugins… do i need something special ?

    Do you have the latest version of WordPress ? If not update those

    Do you have the latest version of Kleo theme ? If not update those

    Do you have the latest version of plugins installed ? If not update those

    If you de-activate all plugins it works ? if yes enable back plugins one by one to identify what causes this.

    If you de-activate the child theme it works ?

    Let me know, maybe it’s a isolated issue on your server..

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #204053
     mirajas
    Participant

    Hi,

    Thank you for your reply and pointing me in the right direction.

    I checked everything except child theme. There was a CSS override which was causing the issue.

    Now everything seems working great.

    The issue is resolved now.

    #204158
     Radu
    Moderator

    Great
    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?