-
Author
-
July 14, 2018 at 13:34 #203849mirajasParticipant
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.
July 14, 2018 at 16:32 #203862Kieran_SQModeratorHi,
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 solutionIf 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.
July 16, 2018 at 19:19 #203996RaduModeratorHi,
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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 17, 2018 at 08:45 #204053mirajasParticipantHi,
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.
July 18, 2018 at 18:27 #204158RaduModeratorGreat
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.