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

  • Author
  • #44768
     Future Cellar
    Participant

    Hi there
    I’m currently using home-pinterest as my homepage
    I wonder is there anyway to have author’s avatars shown under featured image, so each single post block layout will be look like something below
    —————-
    [ featured ]
    [ image ]
    [ ]
    ================
    [avatar][except]
    [ ][ ]
    —————-

    #44769
     Future Cellar
    Participant

    ———————————————
    [ featured—–]
    [ image——–]
    [ ————-]
    ================
    [avatar][except]
    [—– ][ —–]
    ———————————————

    #44784
     sharmstr
    Moderator

    If you mean having the author avatar in the author meta, I’ve added that to 2.4.

    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.
    #44886
     Future Cellar
    Participant

    oh, so when is 2.4 available

    #44892
     sharmstr
    Moderator

    Soon. It was due to already be released, but Visual Composer had a major update and Buddypress released 2.2 today. Kleo had to be modified to support both of those updates.

    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

    #44907
     Future Cellar
    Participant

    thanks for answering my question so fast 🙂
    Last question, which file should i edit if i want to make the avatar size, after 2.4 release

    #44908
     sharmstr
    Moderator

    I dont understand your question. Are you asking how to adjust the size? If so, you can do that with css

    COPY CODE
    
    article .post-header .post-meta .meta-author img {
    height: 25px;
    width: 25px;
    }
    
    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

    #44913
     Future Cellar
    Participant

    thanks, that exactly what i want~

    #47332
     Future Cellar
    Participant

    Hi, its me again
    the avatar just doest show up in the posts grid
    I already enabled the meta avatar in the theme option

    #47351
     sharmstr
    Moderator

    Respond privately with a link and credentials.

    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

    #47353
     Future Cellar
    Participant
    This reply has been set as private.
    #47359
     sharmstr
    Moderator

    Its ignoring any options set in the meta. I think its a plugin conflict. You can see the menu that the account avatar isnt working. That’s because there is a conflict with that avatar plugin that you are using. Try disabling all non-Kleo plugins, delete your cache and see if it work.

    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

    #47362
     Future Cellar
    Participant

    thanks, i got it fixed
    I used a function to redirect the author link to buddypress profile
    once i removed it, all problem gone
    The code was originally from this forum, for others who might experiencing the same problem, blew is the original code, just delete it

    COPY CODE
    function kleo_entry_meta($echo=true, $att=array()) {
    	
    		$meta_list = array();
    		
    		// Translators: used between list items, there is a space after the comma.
    		$categories_list = get_the_category_list( __( ', ', 'kleo_framework' ) );
    
    		// Translators: used between list items, there is a space after the comma.
    		$tag_list = get_the_tag_list( '', __( ', ', 'kleo_framework' ) );
    
    		$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark" rel="nofollow"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    			esc_url( get_permalink() ),
    			esc_attr( get_the_time() ),
    			esc_attr( get_the_date( 'c' ) ),
    			esc_html( get_the_date() )
    		);
    
    		$author = sprintf( '<a href="%1$s" title="%2$s" rel="author" rel="nofollow">%3$s</a>',
    			esc_url( bp_core_get_user_domain( get_the_author_meta( 'ID' ) ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'kleo_framework' ), get_the_author() ) ),
    			get_the_author()
    		);
    
    		$meta_list[] = '<small class="meta-author">'.$author.'</small>';
    		$meta_list[] = '<small>'.$date.'</small>';
    		
    		$cat_tag = array();
    		
    		if ( $categories_list ) {
    			$cat_tag[] = $categories_list;
    		}
    		
    		if ($tag_list) {
    			$cat_tag[] = $tag_list;
    		}
    		if (!empty($cat_tag)) {
    			$meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>';
    		}
    		
    		//comments
    		if (!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) {
    		$meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments" rel="nofollow">'.get_comments_number().' <i class="icon-chat-1 hover-tip" 
    			data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'" 
    			data-toggle="tooltip" 
    			data-placement="top"></i></a></small>';
    		}
    		
    		if ($echo) {
    			echo implode(", ", $meta_list);
    		}
    		else {
    			return implode(", ", $meta_list);
    		}
    		
    	}
Viewing 13 posts - 1 through 13 (of 13 total)

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

Log in with your credentials

Forgot your details?