Forum Replies Created
-
Author
-
BDecker19Participant
ah, ok. good to know!
any idea offhand if things like ubermenu work the same way?
BDecker19Participanter, i just meant using the add new theme option (a la the attached) rather than doing the whole thing via SFTP.
I gave it a shot and it seems to have worked, although just want to make sure didn’t screw anything up?
Attachments:
You must be logged in to view attached files.BDecker19ParticipantIt’s weird. It only seems to happen on the top menu. I’ve also tried swapping in other menus to that location and the same happens, although only if that Kleo My Account item is there…
BDecker19ParticipantHmm… interesting. Here are two logins:
goergia-rooney / oh3aoi2hoa (regular user)
devuser / ahsdg78312ig23d (admin — manually created)it looks like maybe the issue may have to do with that custom function you’d (graciously 🙂 created for us previously to sync up Kleo avatar setting with our Loginradius social registration.
ie
COPY CODE// Avatar retrieval correction for LoginRadius fetch function kleo_menu_user_avatar( $item_output, $item, $depth, $args ) { $output = ''; if ( is_user_logged_in() ) { $url = bp_loggedin_user_domain(); $attr_title = strip_tags( $item->attr_title ); $output .= '<a title="' . bp_get_loggedin_user_fullname() . '" class="kleo-bp-user-avatar kleo-rounded-noborder kleo-avatar-menu' . ( $args->has_children && in_array($depth, array(0,1)) ? ' js-activated' : '' ) . '" href="' . $url . '" title="' . $attr_title .'">' . bp_get_loggedin_user_avatar(array('width' => 25, 'height' => 25)) . '</a>'; $output .= ( $args->has_children && in_array($depth, array(0,1))) ? ' <span class="caret"></span></a>' : '</a>'; return $output; } elseif ( $args->has_children && in_array( $depth, array( 0, 1 ) ) ) { return $item_output; } else { return ''; } }
I can potentially play around with this a bit! (or if you have any ideas offhand 😉
BDecker19ParticipantThanks very much!
Although, hmm… no dice unfortunately. Not sure what’s going on?
You can check out the page at http://gct.wpengine.com if interested!
BDecker19ParticipantOh btw, for the release fix… if it’s possible, one thing to consider as well would be having it replace the title in the browser tab display. Currently it still shows the title, rather than the override one if it exists… (eg http://take.ms/Y3Ngv)
BDecker19ParticipantI just realized on this. The ‘custom header content’ box (http://take.ms/MbrvT) doesn’t seem to like html or php, correct?
Assuming not, couldn’t I just create the image I want in the visual composer, then copy over the shortcode it produces? The header box does seem to accept shortcodes…
BDecker19ParticipantYou mean these?
https://archived.seventhqueen.com/forums/topic/color-of-the-nav-bar-icon
https://archived.seventhqueen.com/forums/topic/nav-menu-stylingNot sure either of these answers… although I’m getting the sense the answer is just needs custom CSS?
BDecker19ParticipantOk, cool. To be clear, not in the header though, right? So if there’s a side bar, the image couldn’t go over it, just next to it… correct?
BDecker19ParticipantIf edit header.php, how then do you have different banner images for different pages?
BDecker19ParticipantThanks!
Although hmmm… seems like it’s not liking php either?
See links:
http://take.ms/agjQs
http://take.ms/9FSvJAnd you can’t edit the header with visual composer, right?
BDecker19Participantfyi, have tried adding them in the header box in page edit screens, although it doesn’t seem to accept HTML and I can’t figure out how to structure as a shortcode?
BDecker19Participantinteresting. ok, lemme check. although I’m getting pages in the results there too? screenshot attached.
Attachments:
You must be logged in to view attached files.BDecker19ParticipantUpdate, i’ve added the code below, and it seems to have mostly solved the problem:
COPY CODE// Avoid page results in ajax search function filter_search($query) { if ($query->is_search) { $query->set('post_type', array('post', 'event', 'product', 'topic')); }; return $query; }; add_filter('pre_get_posts', 'filter_search');
Only issue now is with one of the post types (“Event”), it doesn’t seem to be displaying a header category — see screenshot. Is there any way I can adjust this? Or if there’s an alternative solution to the original problem, that works as well!
Attachments:
You must be logged in to view attached files.BDecker19ParticipantHey Abe. Wanted to try returning to this issue… have updated the theme, and am now seeing the settings option you describe. I’ve done as you say and selected everything I want to include, excluding Pages. Pages still seem to be loading in the dropdown though? Let me know how I can potentially diagnose… see screenshots attached.
Thanks!
BenjiAttachments:
You must be logged in to view attached files.BDecker19ParticipantHmm… ok. I still don’t understand if Kleo has official support (or if you are official support?), although suppose will take it how can get it…
BDecker19ParticipantOk, have just gone through the code some more and think getting closer to understanding what you mean. So i see now how the $text variable in login_radius_bp_avatar I guess needs to line up with the $output variable being returned in kleo_menu_user_avatar, which is the adjustment you made.
Just confused still the order these things are getting called though. kleo_menu_user_avatar is getting called by kleo_setup_user_avatar_nav I guess every time the page loads with the menu in it? What about login_radius_bp_avatar… when / how is that getting called?
BDecker19ParticipantHey Herve. Wanna send a link to your site? Happy to show you how I set things up if can be at all helpful!
BDecker19ParticipantHmm… ok. So it looks like you’re overwriting kleo BP config file, changing the “output” within kleo_menu_user_avatar from:
COPY CODE$output .= '<a title="' . bp_get_loggedin_user_fullname() . '" class="kleo-bp-user-avatar' . ( $args->has_children && in_array($depth, array(0,1)) ? ' js-activated' : '' ) . '" href="' . $url . '" title="' . $attr_title .'">' . '<img src="' . bp_get_loggedin_user_avatar(array('width' => 25, 'height' => 25, 'html' => false)) . '" class="kleo-rounded" alt="">' . ($item->attr_title != '' ? ' ' . $item->attr_title : '');
to:
COPY CODE$output .= '<a title="' . bp_get_loggedin_user_fullname() . '" class="kleo-bp-user-avatar kleo-rounded-noborder kleo-avatar-menu' . ( $args->has_children && in_array($depth, array(0,1)) ? ' js-activated' : '' ) . '" href="' . $url . '" title="' . $attr_title .'">' . bp_get_loggedin_user_avatar(array('width' => 25, 'height' => 25)) . '</a>';
Where the difference is you’re adding the extra classes (I guess just to ensure proper styling?) and then calling the bp_get_loggedin_user_avatar function, which it wasn’t previously.
Is this all right?
Thanks so much for your help here!
BDecker19ParticipantHey, thanks so much for this. Semi-out of curiosity, are you able to let me know what you did to fix it?
BDecker19ParticipantSee below reply from social login provider. Is this helpful in diagnosing what the issue is?
Hi Benji,
I found a bug when displaying the full sized avatar and have fixed that. However that does not help you with your kleo theme not displaying the proper thumbnail. Since that is something that is out of our scope I cannot code that modification. I can however point you to the code we have developed and hopefully you can modify your theme to use the same code. In the file LoginRadius.php there is the code:
if ( isset( $loginRadiusSettings[‘LoginRadius_socialavatar’] ) && in_array( $loginRadiusSettings[‘LoginRadius_socialavatar’], array( ‘socialavatar’, ‘largeavatar’, ‘allgravateravatar’, ’emptysocialavatar’ ) ) ) {
add_filter( ‘bp_core_fetch_avatar’, ‘login_radius_bp_avatar’, 10, 2 );
}
The login_radius_bp_avatar() is the function used for Buddypress avatar rendering. This is probably the same function you need for your theme icon. Please let us know if this is helpful in your modification.
LoginRadius TeamBDecker19ParticipantOk, definitely will. To be honest, still a bit confused though. Where is bp_get_loggedin_user_avatar calling to? As in, the image address it seems isn’t stored in the database anywhere, right?
BDecker19Participantwhen you say “it” — kinda confused. I’d think it’s the theme that’s looking for either the buddypress or wordpress avatar, rather than the plugin, no?
-
AuthorPosts