Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #678054

    Hi,

    I am working on this – http://penguinup.com/en/author/penguinup/

    I have multiple authors and on each of the author’s pages – the blog posts show up however the feature image is not showing.

    Is there any solution for this? Using the multi author blog style

    Thanks

    #679542

    Hey vaibhavbhutoria,

    Please go to enfold/includes/loop-author.php file and find

    	                        echo '<span class="blog-categories minor-meta">';
    	                        echo $cats;

    and change it to

    	                        echo '<span class="blog-categories minor-meta">';
                                echo the_post_thumbnail();
    	                        echo $cats;

    Best regards,
    Yigit

    #1050189

    can you please take look my author page? this work not really good with your code.
    and i have some warning! php

    • This reply was modified 5 years, 10 months ago by mjavidnikoo.
    #1050970

    Hi,


    @mjavidnikoo
    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    CSS Snippet:

    
    .blog-categories img.attachment-post-thumbnail {
        width: 100%;
    }
    
    

    Best regards,
    Yigit

    #1054396

    Is it possible to help me to make author page like this https://themesindep.com/simplemag/author/jane/

    • This reply was modified 5 years, 10 months ago by mjavidnikoo.
    #1055185

    Hi mjavidnikoo,

    It is possible, but you’ll need a custom author template.

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

    #1057136

    I found the PHP code, but it does not work well. I think it takes a bit of work. Can someone help me?(with out money!

    
    <?php 
    
    get_header(); ?>
    		
    	<section id="content" role="main" class="clearfix anmtd author-page">
        	<div class="wrapper">
        		
                <?php if ( have_posts() ) : ?>
    			
                <div class="grids">
                    <div class="grid-4 columns column-1 sidebar-fixed">
                        
                        <div class="author-box" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
                            
                            <?php $curauth = ( isset( $_GET['author_name'] ) ) ? get_user_by( 'slug', $author_name ) : get_userdata( intval( $author ) ); ?>
    
                            <div class="author-avatar">
                                <?php
                                // Author Image
                                $itemprop = array( 'extra_attr' => 'itemprop="image"' );
                                echo get_avatar( $curauth->ID, 180, '', $curauth->display_name, $itemprop );
                                ?>
                            </div>
    
                            <div class="author-info">
                                <h1 itemprop="name"><?php echo $curauth->display_name; ?></span></h1>
                                <p itemprop="description">
                                    <?php echo $curauth->user_description; ?>
                                </p>
                            </div>
                            
                            <ul class="author-social">
                                <?php
                                $author_link = array ( 
                                    'user_url' => 'sphere',
                                    'sptwitter' => 'twitter',
                                    'spfacebook' => 'facebook',
                                    'spgoogle' => 'google-plus',
                                    'sppinterest' => 'pinterest',
                                    'splinkedin' => 'linkedin',
                                    'spinstagram' => 'instagram',
                                );
                                foreach ( $author_link as $link => $name ) {
                                ?>
                                    <?php  
                                    if ( get_the_author_meta( $link ) ) { 
                                        if ( $link == 'spgoogle' ) { $rel_author = '?rel=author'; }
                                        else { $rel_author = ''; }
                                    ?>
                                        <li>
                                            <a href="<?php echo wp_kses( get_the_author_meta( $link ), null ) . $rel_author; ?>">
                                                <i class="icomoon-<?php printf( $name, get_the_author() ); ?>"></i>
                                            </a>
                                        </li>
                                    <?php } ?>
                                <?php } ?>
                            </ul><!-- .author-social -->
    
                        </div>
                    </div><!-- .grid-4 -->
                    
                    <div class="grid-8">
                    
                        <div class="grids list-layout entries">
                            <?php
                                while ( have_posts() ) : the_post();
    
                                    get_template_part( 'content', 'post' );
    
                                endwhile;
                            
                                wp_reset_query();
                            ?>
                        </div>
                    
                    </div><!-- .grid-8 -->
                </div><!--.grids-->
                        
                <?php the_posts_pagination( array(
                    'mid_size' => 4,
                    'prev_text' => __( '<i class="icomoon-arrow-left"></i>' ),
                    'next_text' => __( '<i class="icomoon-arrow-right"></i>' ),
                ) ); ?>
                
                <?php else: ?>
                
    			     <p class="message"><?php _e('This author has no posts yet', 'themetext' ); ?></p>
                
        		<?php endif; ?>
                
        	</div>
        </section>
    		
    <?php get_footer(); ?>
    
    
    • This reply was modified 5 years, 10 months ago by mjavidnikoo.
    #1057538

    Hi,

    Unfortunately it is outside of our support policy, please do follow the guidance Viktoria has provided.

    Best regards,
    Basilis

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.