This topic has 12 replies, 2 voices, and was last updated 9 years by Milton Ayala.

  • Author
  • #52809
     Milton Ayala
    Participant

    The position of the avatar is off to the right, everywhere. How can I fix it?

    Attachments:
    You must be logged in to view attached files.
    #52845
     sharmstr
    Moderator

    It doesnt do that by default. So something is overriding your css. Either custom css you’ve put in or a plugin. Didnt you have an issue with the border being oval instead of round as well?

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #52872
     Milton Ayala
    Participant

    I’m sure that’s not the default.:) Yea I had the problem with the oval outline on the avatar, I think is an overall issue. I tried the plug-in solution and it did not work out for me. Your css styling code worked, but only on the profile pages and it still does not centered it, so on the profile pages the outline of the avatar is gone but is still off the center. You also provided so generously a css code to move the avatar to the right

    body.buddypress.is-user-profile div#item-header {
    text-align: right;
    }

    It moves it to the right, but is still some what off, it doesn’t align with the social icons. I tried text-align: center; and it brought it back to it’s mis-alignment position in the center. Maybe I’m wrong, but I think this is only a solution for the profile pages / buddy press. Also I think this is an overall issue and it has nothing to do with buddy press. I also get the issue on the comments in post pages.

    Is there a function code to force the avatar to it’s default position? or can this be solved with a css code for the whole theme?

    Just in case someone has similar issues, @sharmstr previous oval chat
    https://archived.seventhqueen.com/forums/topic/profile-covers

    #52877
     sharmstr
    Moderator

    Its either a plugin issue or not all of your css files are loading.

    You’ll see in the css I gave you there is .is-user-profile selector. That means it will only happen on the user profile page. But that code is for the header, not for the avatar.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #52892
     Milton Ayala
    Participant

    Thank you,

    O’ I see, the header not the avatar. I did the plug-in thing 3 times already, Just to be sure. All the codes on the css are recently added ( your codes ) And I was experiencing the problem before that.

    But just in case here’s what it looks like

    #kleo-login-modal .kleo-pop-title-wrap p {
    display: none;
    }
    body.is-user-profile #item-header-avatar {
    border: 0;
    }
    body.buddypress.is-user-profile div#item-header {
    text-align: center;
    }
    body.buddypress.is-user-profile div#item-header i {
    font-size: 30px;
    }

    body.buddypress.is-user-profile div#item-header-content span.activity {
    display: none;
    }
    .main-color #buddypress div#item-nav ul li a:before, .main-color #buddypress div#item-nav .tabdrop .dropdown-menu li a:before {
    color: #08490e;
    }
    /* Format Post Author Avatar */

    .post-author-avatar {
    display: block;
    }
    .post-author-avatar img {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 100%;
    border-style: solid;
    border-width: 5px;
    border-color: #f7f7f7;
    }
    .bp-user #buddypress #item-header-avatar {
    margin-top: -50px !important;

    }

    The only code which I did a few versions back was on the fuctions to remove the word archive from the post page title. All the other codes are yours recently added, I had the issue before that. So the only code I added was in the fuctions, I removed it and still had the same issue. Plus I need this code or else the word archive pops back up. Also I noticed that this code might be the reason why my theme options/blog/meta display fields selection does not work.

    function kleo_title()
    {
    $output = “”;
    if ( is_category() )
    {
    $output = __(”,’kleo_framework’).” “.single_cat_title(”,false);
    }
    elseif (is_day())
    {
    $output = __(‘date:’,’kleo_framework’).” “.get_the_time(‘F jS, Y’);
    }
    elseif (is_month())
    {
    $output = __(‘month:’,’kleo_framework’).” “.get_the_time(‘F, Y’);
    }
    elseif (is_year())
    {
    $output = __(‘year:’,’kleo_framework’).” “.get_the_time(‘Y’);
    }
    elseif (is_search())
    {
    global $wp_query;
    if(!empty($wp_query->found_posts))
    {
    if($wp_query->found_posts > 1)
    {
    $output = $wp_query->found_posts .” “. __(‘search results for:’,’kleo_framework’).” “.esc_attr( get_search_query() );
    }
    else
    {
    $output = $wp_query->found_posts .” “. __(‘search result for:’,’kleo_framework’).” “.esc_attr( get_search_query() );
    }
    }
    else
    {
    if(!empty($_GET[‘s’]))
    {
    $output = __(‘Search results for:’,’kleo_framework’).” “.esc_attr( get_search_query() );
    }
    else
    {
    $output = __(‘To search the site please enter a valid term’,’kleo_framework’);
    }
    }
    }
    elseif (is_author())
    {
    $curauth = (get_query_var(‘author_name’)) ? get_user_by(‘slug’, get_query_var(‘author_name’)) : get_userdata(get_query_var(‘author’));
    $output = __(”,’kleo_framework’).” “;
    if(isset($curauth->nickname)) $output .= __(”,’kleo_framework’).” “.$curauth->nickname;
    }
    elseif (is_tag())
    {
    $output = __(‘Tag Archive for:’,’kleo_framework’).” “.single_tag_title(”,false);
    }
    elseif(is_tax())
    {
    $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) );
    $output = __(‘Archive for:’,’kleo_framework’).” “.$term->name;
    } elseif ( is_front_page() && !is_home() ) {
    $output = get_the_title(get_option(‘page_on_front’));
    } elseif ( is_home() && !is_front_page() ) {
    $output = get_the_title(get_option(‘page_for_posts’));
    } elseif ( is_404() ) {
    $output = __(‘Error 404 – Page not found’,’kleo_framework’);
    }
    else {
    $output = get_the_title();
    }
    if (isset($_GET[‘paged’]) && !empty($_GET[‘paged’]))
    {
    $output .= ” (“.__(‘Page’,’kleo_framework’).” “.$_GET[‘paged’].”)”;
    }
    return $output;
    }

    Can you help me @sharmstr?

    #52893
     sharmstr
    Moderator

    I need to see a link

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #52894
     Milton Ayala
    Participant

    Ok, Which link? here’s one, not sure what you mean?

    http://rackupskills.com/author/

    #52897
     sharmstr
    Moderator

    So, when we say its HAS to be a plugin causing it, we mean it.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    #52903
     Milton Ayala
    Participant

    Wow! @sharmstr,

    You’re so right, it worked perfectly. I apologize, I missed that one. I was doing them one by one. This goes to prove the customer is not always right. 🙂 Thank you so much!!!

    On another note, I like the codes you have provided in the forum and from what I read you are the creator of BP profile cover. Real Nice! Way to go!

    #52905
     sharmstr
    Moderator

    Actually I’m not. @abe did it.

    When I’m tracking down an issue with my sites, the first thing I do is disable ALL plugins. I dont disable one, test it, then enable it. If you disable them all from the beginning, then enable one by one, you wont miss one 🙂

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #52908
     Milton Ayala
    Participant

    Oh, I see, maybe I got confused with all the reading I been doing on the forum. From what I understood it was your idea. The girl that builds motorcycles and everybody confuses for a guy. 🙂

    That’s exactly where I went wrong. If I experience issues like that again I’ll know how to start trouble shooting thanks to you.

    #52911
     sharmstr
    Moderator

    Oh right. I did write a plugin to begin with, but then @abe said he’d do it. So, the one you are using is @abes 🙂

    Wow, you’re digging through the archives 🙂

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #52916
     Milton Ayala
    Participant

    Yea I have 🙂 I found a lot of cool stuff here that works, and your support has been excellent. Thanks again @sharmstr

Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?