1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to disable the author link

Discussion in 'Blogging' started by bimmerime, Sep 14, 2015.

  1. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    18
    hello,
    i would like to disable the author link and just show its name. how can i do this?
     
  2. SEO FOX

    SEO FOX Jr. VIP Jr. VIP

    Joined:
    Apr 27, 2015
    Messages:
    3,227
    Likes Received:
    660
    Gender:
    Male
    Location:
    Infront Of U!!
    Home Page:
    remove this code: <a>href="....."</a>

    Please show your site or contact via skype, i will help you.
     
    • Thanks Thanks x 1
  3. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    18
    thank for the reply. but where exactly can i remove that part?
     
  4. withatwist

    withatwist Power Member

    Joined:
    Nov 15, 2012
    Messages:
    691
    Likes Received:
    169
    If you're talking about Wordpress, should be in your theme's files. Typically this would be in the single.php, index.php, etc. files depending on the setup of your blog.

    But like the previous poster said, I don't know if you PMed him or not, but we'd need to see your site to see where your author links are presented to give you a better answer.

    But to start, look in your theme's files.
     
  5. trevord92

    trevord92 Newbie

    Joined:
    Sep 13, 2015
    Messages:
    4
    Likes Received:
    2
    Location:
    Cheltenham, UK
    Home Page:
    Good advice but be aware that if/when you next update the theme (which may be soon or may be never, it depends) then the changes you make will vanish unless you've made them as part of a child theme.
     
  6. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,170
    Likes Received:
    2,387
    Occupation:
    blog creator
    Location:
    UK
    make sure you do the changes in a child theme, if you edit your main themes files and there is an update then your work will be lost. Always use a child theme when making code or css changes to wordpress never change theme code directly.
     
  7. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    18
    i couldn't find what to change. hope someone can help me
    here's my single.php file
    Code:
    <?php get_header(); ?>    <?php
        $content_css = 'width:100%';
        $sidebar_css = 'display:none';
        $content_class = '';
        $sidebar_exists = false;
        $sidebar_left = '';
        $double_sidebars = false;
    
    
        $sidebar_1 = get_post_meta( $post->ID, 'sbg_selected_sidebar_replacement', true );
        $sidebar_2 = get_post_meta( $post->ID, 'sbg_selected_sidebar_2_replacement', true );
    
    
        if( Avada()->settings->get( 'posts_global_sidebar' ) ) {
            if( Avada()->settings->get( 'posts_sidebar' ) != 'None' ) {
                $sidebar_1 = array( Avada()->settings->get( 'posts_sidebar' ) );
            } else {
                $sidebar_1 = '';
            }
    
    
            if( Avada()->settings->get( 'posts_sidebar_2' ) != 'None' ) {
                $sidebar_2 = array( Avada()->settings->get( 'posts_sidebar_2' ) );
            } else {
                $sidebar_2 = '';
            }
        }
    
    
        if( ( is_array( $sidebar_1 ) && ( $sidebar_1[0] || $sidebar_1[0] === '0' ) ) && ( is_array( $sidebar_2 ) && ( $sidebar_2[0] || $sidebar_2[0] === '0' ) ) ) {
            $double_sidebars = true;
        }
    
    
        if( is_array( $sidebar_1 ) &&
            ( $sidebar_1[0] || $sidebar_1[0] === '0' )
        ) {
            $sidebar_exists = true;
        } else {
            $sidebar_exists = false;
        }
    
    
        if( ! $sidebar_exists ) {
            $content_css = 'width:100%';
            $sidebar_css = 'display:none';
            $sidebar_exists = false;
        } elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'left') {
            $content_css = 'float:right;';
            $sidebar_css = 'float:left;';
            $content_class = 'portfolio-one-sidebar';
            $sidebar_exists = true;
            $sidebar_left = 1;
        } elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'right') {
            $content_css = 'float:left;';
            $sidebar_css = 'float:right;';
            $content_class = 'portfolio-one-sidebar';
            $sidebar_exists = true;
        } elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'default' || ! metadata_exists( 'post', $post->ID, 'pyre_sidebar_position' )) {
            $content_class = 'portfolio-one-sidebar';
            if(Avada()->settings->get( 'blog_sidebar_position' ) == 'Left') {
                $content_css = 'float:right;';
                $sidebar_css = 'float:left;';
                $sidebar_exists = true;
                $sidebar_left = 1;
            } elseif(Avada()->settings->get( 'blog_sidebar_position' ) == 'Right') {
                $content_css = 'float:left;';
                $sidebar_css = 'float:right;';
                $sidebar_exists = true;
                $sidebar_left = 2;
            }
        }
    
    
        if(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'right') {
            $sidebar_left = 2;
        }
    
    
        if( Avada()->settings->get( 'posts_global_sidebar' ) ) {
            if( Avada()->settings->get( 'posts_sidebar' ) != 'None' ) {
                $sidebar_1 = Avada()->settings->get( 'posts_sidebar' );
    
    
                if( Avada()->settings->get( 'blog_sidebar_position' ) == 'Right' ) {
                    $content_css = 'float:left;';
                    $sidebar_css = 'float:right;';
                    $sidebar_left = 2;
                } else {
                    $content_css = 'float:right;';
                    $sidebar_css = 'float:left;';
                    $sidebar_left = 1;
                }
            }
    
    
            if( Avada()->settings->get( 'posts_sidebar_2' ) != 'None' ) {
                $sidebar_2 = Avada()->settings->get( 'posts_sidebar_2' );
            }
    
    
            if( Avada()->settings->get( 'posts_sidebar' ) != 'None' && Avada()->settings->get( 'posts_sidebar_2' ) != 'None' ) {
                $double_sidebars = true;
            }
        } else {
            $sidebar_1 = '0';
            $sidebar_2 = '0';
        }
    
    
        if($double_sidebars == true) {
            $content_css = 'float:left;';
            $sidebar_css = 'float:left;';
            $sidebar_2_css = 'float:left;';
        } else {
            $sidebar_left = 1;
        }
        ?>
        <div id="content" class="<?php echo $content_class; ?>" style="<?php echo $content_css; ?>">
            <?php if( ( ! Avada()->settings->get( 'blog_pn_nav' ) && get_post_meta($post->ID, 'pyre_post_pagination', true) != 'no' ) ||
                      ( Avada()->settings->get( 'blog_pn_nav' ) && get_post_meta($post->ID, 'pyre_post_pagination', true) == 'yes' ) ): ?>
            <div class="single-navigation clearfix">
                <?php previous_post_link('%link', __('Previous', 'Avada')); ?>
                <?php next_post_link('%link', __('Next', 'Avada')); ?>
            </div>
            <?php endif; ?>
            <?php while( have_posts() ): the_post(); ?>
            <div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
                <?php
                $full_image = '';
                if( ! post_password_required($post->ID) ): // 1
                if(Avada()->settings->get( 'featured_images_single' )): // 2
                if( avada_number_of_featured_images() > 0 || get_post_meta( $post->ID, 'pyre_video', true ) ): // 3
                ?>
                <div class="fusion-flexslider flexslider fusion-flexslider-loading post-slideshow fusion-post-slideshow">
                    <ul class="slides">
                        <?php if(get_post_meta($post->ID, 'pyre_video', true)): ?>
                        <li>
                            <div class="full-video">
                                <?php echo get_post_meta($post->ID, 'pyre_video', true); ?>
                            </div>
                        </li>
                        <?php endif; ?>
                        <?php if( has_post_thumbnail() && get_post_meta( $post->ID, 'pyre_show_first_featured_image', true ) != 'yes' ): ?>
                        <?php $attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
                        <?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
                        <?php $attachment_data = wp_get_attachment_metadata(get_post_thumbnail_id()); ?>
                        <li>
                            <?php if( ! Avada()->settings->get( 'status_lightbox' ) && ! Avada()->settings->get( 'status_lightbox_single' ) ): ?>
                            <a href="<?php echo $full_image[0]; ?>" data-rel="iLightbox[gallery<?php the_ID(); ?>]" title="<?php echo get_post_field('post_excerpt', get_post_thumbnail_id()); ?>" data-title="<?php echo get_post_field('post_title', get_post_thumbnail_id()); ?>" data-caption="<?php echo get_post_field('post_excerpt', get_post_thumbnail_id()); ?>"><img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); ?>" /></a>
                            <?php else: ?>
                            <img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); ?>" />
                            <?php endif; ?>
                        </li>
                        <?php endif; ?>
                        <?php
                        $i = 2;
                        while($i <= Avada()->settings->get( 'posts_slideshow_number' )):
                        $attachment_new_id = kd_mfi_get_featured_image_id('featured-image-'.$i, 'post');
                        if($attachment_new_id):
                        ?>
                        <?php $attachment_image = wp_get_attachment_image_src($attachment_new_id, 'full'); ?>
                        <?php $full_image = wp_get_attachment_image_src($attachment_new_id, 'full'); ?>
                        <?php $attachment_data = wp_get_attachment_metadata($attachment_new_id); ?>
                        <li>
                            <?php if( ! Avada()->settings->get( 'status_lightbox' ) && ! Avada()->settings->get( 'status_lightbox_single' ) ): ?>
                            <a href="<?php echo $full_image[0]; ?>" data-rel="iLightbox[gallery<?php the_ID(); ?>]" title="<?php echo get_post_field('post_excerpt', $attachment_new_id); ?>" data-title="<?php echo get_post_field( 'post_title', $attachment_new_id ); ?>" data-caption="<?php echo get_post_field('post_excerpt', $attachment_new_id ); ?>"><img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta($attachment_new_id, '_wp_attachment_image_alt', true); ?>" /></a>
                            <?php else: ?>
                            <img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta($attachment_new_id, '_wp_attachment_image_alt', true); ?>" />
                            <?php endif; ?>
                        </li>
                        <?php endif; $i++; endwhile; ?>
                    </ul>
                </div>
                <?php endif; // 3 ?>
                <?php endif; // 2 ?>
                <?php endif; // 1 ?>
                <?php if(Avada()->settings->get( 'blog_post_title' )): ?>
                <?php echo avada_render_post_title( $post->ID, FALSE, '', '2' ); ?>
                <?php elseif( ! Avada()->settings->get( 'disable_date_rich_snippet_pages' ) ): ?>
                <span class="entry-title" style="display: none;"><?php the_title(); ?></span>
                <?php endif; ?>
                <div class="post-content">
                    <?php the_content(); ?>
                    <?php avada_link_pages(); ?>
                </div>
                <?php if( ! post_password_required($post->ID) ): ?>
                <?php echo avada_render_post_metadata( 'single' ); ?>
                <?php if( ( Avada()->settings->get( 'social_sharing_box' ) && get_post_meta($post->ID, 'pyre_share_box', true) != 'no' ) ||
                          ( ! Avada()->settings->get( 'social_sharing_box' ) && get_post_meta($post->ID, 'pyre_share_box', true) == 'yes' ) ):
                    $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
                    $sharingbox_soical_icon_options = array (
                        'sharingbox'        => 'yes',
                        'icon_colors'         => Avada()->settings->get( 'sharing_social_links_icon_color' ),
                        'box_colors'         => Avada()->settings->get( 'sharing_social_links_box_color' ),
                        'icon_boxed'         => Avada()->settings->get( 'sharing_social_links_boxed' ),
                        'icon_boxed_radius' => Avada()->settings->get( 'sharing_social_links_boxed_radius' ),
                        'tooltip_placement'    => Avada()->settings->get( 'sharing_social_links_tooltip_placement' ),
                        'linktarget'        => Avada()->settings->get( 'social_icons_new' ),
                        'title'                => wp_strip_all_tags(get_the_title( $post->ID ), true),
                        'description'        => wp_strip_all_tags(get_the_title( $post->ID ), true),
                        'link'                => get_permalink( $post->ID ),
                        'pinterest_image'    => ($full_image) ? $full_image[0] : '',
                    );
                    ?>
                    <div class="fusion-sharing-box fusion-single-sharing-box share-box">
                        <h4><?php echo __('Share This Story, Choose Your Platform!', 'Avada'); ?></h4>
                        <?php echo $social_icons->render_social_icons( $sharingbox_soical_icon_options ); ?>
                    </div>
                <?php endif; ?>
                <?php if( ( Avada()->settings->get( 'author_info' ) && get_post_meta($post->ID, 'pyre_author_info', true) != 'no' ) ||
                          ( ! Avada()->settings->get( 'author_info' ) && get_post_meta($post->ID, 'pyre_author_info', true) == 'yes' ) ): ?>
                <div class="about-author">
                    <?php
                        ob_start();
                        the_author_posts_link();
                        $title = sprintf( '%s %s', __( 'About the Author:', 'Avada' ), ob_get_clean() );
                        echo do_shortcode( sprintf( '[title size="3" content_align="left" style_type="default"]%s[/title]', $title ) );
                    ?>
                    <div class="about-author-container">
                        <div class="avatar">
                            <?php echo get_avatar(get_the_author_meta ('email'), '72'); ?>
                        </div>
                        <div class="description">
                            <?php the_author_meta ("description"); ?>
                        </div>
                    </div>
                </div>
                <?php endif; ?>
    
    
                <?php
                // Render Related Posts
                echo avada_render_related_posts();
                ?>
    
    
                <?php if( ( Avada()->settings->get( 'blog_comments' ) && get_post_meta($post->ID, 'pyre_post_comments', true ) != 'no' ) ||
                          ( ! Avada()->settings->get( 'blog_comments' ) && get_post_meta($post->ID, 'pyre_post_comments', true) == 'yes' ) ): ?>
                    <?php
                    wp_reset_query();
                    comments_template();
                    ?>
                <?php endif; ?>
                <?php endif; ?>
            </div>
            <?php endwhile; ?>
            <?php wp_reset_query(); ?>
        </div>
        <?php if( $sidebar_exists == true ): ?>
        <div id="sidebar" class="sidebar" style="<?php echo $sidebar_css; ?>">
            <?php
            if($sidebar_left == 1) {
                generated_dynamic_sidebar($sidebar_1);
            }
            if($sidebar_left == 2) {
                generated_dynamic_sidebar_2($sidebar_2);
            }
            ?>
        </div>
        <?php if( $double_sidebars == true ): ?>
        <div id="sidebar-2" class="sidebar" style="<?php echo $sidebar_2_css; ?>">
            <?php
            if($sidebar_left == 1) {
                generated_dynamic_sidebar_2($sidebar_2);
            }
            if($sidebar_left == 2) {
                generated_dynamic_sidebar($sidebar_1);
            }
            ?>
        </div>
        <?php endif; ?>
        <?php endif; ?>
    <?php get_footer();
    
    
    // Omit closing PHP tag to avoid "Headers already sent" issues.
    
    
    
     
  8. TheBoh

    TheBoh Newbie

    Joined:
    Sep 16, 2015
    Messages:
    15
    Likes Received:
    1
    Replace the_author_posts_link(); with get_the_author();
     
  9. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,170
    Likes Received:
    2,387
    Occupation:
    blog creator
    Location:
    UK
    download notepad++ which is free and drag that file into it and look for line 216. Or you can do the same and use the search box, type in the line you need then hit search and notepad++ will show you the line you need. Then replace it and save. Upload to your child theme folder and you are good to go. Do not change core code as when there is a new update you will lose it. If you don't want to to do that i have just done it for you.
    Single.php
    <?php get_header(); ?> <?php
    $content_css = 'width:100%';
    $sidebar_css = 'display:none';
    $content_class = '';
    $sidebar_exists = false;
    $sidebar_left = '';
    $double_sidebars = false;




    $sidebar_1 = get_post_meta( $post->ID, 'sbg_selected_sidebar_replacement', true );
    $sidebar_2 = get_post_meta( $post->ID, 'sbg_selected_sidebar_2_replacement', true );




    if( Avada()->settings->get( 'posts_global_sidebar' ) ) {
    if( Avada()->settings->get( 'posts_sidebar' ) != 'None' ) {
    $sidebar_1 = array( Avada()->settings->get( 'posts_sidebar' ) );
    } else {
    $sidebar_1 = '';
    }




    if( Avada()->settings->get( 'posts_sidebar_2' ) != 'None' ) {
    $sidebar_2 = array( Avada()->settings->get( 'posts_sidebar_2' ) );
    } else {
    $sidebar_2 = '';
    }
    }




    if( ( is_array( $sidebar_1 ) && ( $sidebar_1[0] || $sidebar_1[0] === '0' ) ) && ( is_array( $sidebar_2 ) && ( $sidebar_2[0] || $sidebar_2[0] === '0' ) ) ) {
    $double_sidebars = true;
    }




    if( is_array( $sidebar_1 ) &&
    ( $sidebar_1[0] || $sidebar_1[0] === '0' )
    ) {
    $sidebar_exists = true;
    } else {
    $sidebar_exists = false;
    }




    if( ! $sidebar_exists ) {
    $content_css = 'width:100%';
    $sidebar_css = 'display:none';
    $sidebar_exists = false;
    } elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'left') {
    $content_css = 'float:right;';
    $sidebar_css = 'float:left;';
    $content_class = 'portfolio-one-sidebar';
    $sidebar_exists = true;
    $sidebar_left = 1;
    } elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'right') {
    $content_css = 'float:left;';
    $sidebar_css = 'float:right;';
    $content_class = 'portfolio-one-sidebar';
    $sidebar_exists = true;
    } elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'default' || ! metadata_exists( 'post', $post->ID, 'pyre_sidebar_position' )) {
    $content_class = 'portfolio-one-sidebar';
    if(Avada()->settings->get( 'blog_sidebar_position' ) == 'Left') {
    $content_css = 'float:right;';
    $sidebar_css = 'float:left;';
    $sidebar_exists = true;
    $sidebar_left = 1;
    } elseif(Avada()->settings->get( 'blog_sidebar_position' ) == 'Right') {
    $content_css = 'float:left;';
    $sidebar_css = 'float:right;';
    $sidebar_exists = true;
    $sidebar_left = 2;
    }
    }




    if(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'right') {
    $sidebar_left = 2;
    }




    if( Avada()->settings->get( 'posts_global_sidebar' ) ) {
    if( Avada()->settings->get( 'posts_sidebar' ) != 'None' ) {
    $sidebar_1 = Avada()->settings->get( 'posts_sidebar' );




    if( Avada()->settings->get( 'blog_sidebar_position' ) == 'Right' ) {
    $content_css = 'float:left;';
    $sidebar_css = 'float:right;';
    $sidebar_left = 2;
    } else {
    $content_css = 'float:right;';
    $sidebar_css = 'float:left;';
    $sidebar_left = 1;
    }
    }




    if( Avada()->settings->get( 'posts_sidebar_2' ) != 'None' ) {
    $sidebar_2 = Avada()->settings->get( 'posts_sidebar_2' );
    }




    if( Avada()->settings->get( 'posts_sidebar' ) != 'None' && Avada()->settings->get( 'posts_sidebar_2' ) != 'None' ) {
    $double_sidebars = true;
    }
    } else {
    $sidebar_1 = '0';
    $sidebar_2 = '0';
    }




    if($double_sidebars == true) {
    $content_css = 'float:left;';
    $sidebar_css = 'float:left;';
    $sidebar_2_css = 'float:left;';
    } else {
    $sidebar_left = 1;
    }
    ?>
    <div id="content" class="<?php echo $content_class; ?>" style="<?php echo $content_css; ?>">
    <?php if( ( ! Avada()->settings->get( 'blog_pn_nav' ) && get_post_meta($post->ID, 'pyre_post_pagination', true) != 'no' ) ||
    ( Avada()->settings->get( 'blog_pn_nav' ) && get_post_meta($post->ID, 'pyre_post_pagination', true) == 'yes' ) ): ?>
    <div class="single-navigation clearfix">
    <?php previous_post_link('%link', __('Previous', 'Avada')); ?>
    <?php next_post_link('%link', __('Next', 'Avada')); ?>
    </div>
    <?php endif; ?>
    <?php while( have_posts() ): the_post(); ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
    <?php
    $full_image = '';
    if( ! post_password_required($post->ID) ): // 1
    if(Avada()->settings->get( 'featured_images_single' )): // 2
    if( avada_number_of_featured_images() > 0 || get_post_meta( $post->ID, 'pyre_video', true ) ): // 3
    ?>
    <div class="fusion-flexslider flexslider fusion-flexslider-loading post-slideshow fusion-post-slideshow">
    <ul class="slides">
    <?php if(get_post_meta($post->ID, 'pyre_video', true)): ?>
    <li>
    <div class="full-video">
    <?php echo get_post_meta($post->ID, 'pyre_video', true); ?>
    </div>
    </li>
    <?php endif; ?>
    <?php if( has_post_thumbnail() && get_post_meta( $post->ID, 'pyre_show_first_featured_image', true ) != 'yes' ): ?>
    <?php $attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
    <?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
    <?php $attachment_data = wp_get_attachment_metadata(get_post_thumbnail_id()); ?>
    <li>
    <?php if( ! Avada()->settings->get( 'status_lightbox' ) && ! Avada()->settings->get( 'status_lightbox_single' ) ): ?>
    <a href="<?php echo $full_image[0]; ?>" data-rel="iLightbox[gallery<?php the_ID(); ?>]" title="<?php echo get_post_field('post_excerpt', get_post_thumbnail_id()); ?>" data-title="<?php echo get_post_field('post_title', get_post_thumbnail_id()); ?>" data-caption="<?php echo get_post_field('post_excerpt', get_post_thumbnail_id()); ?>"><img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); ?>" /></a>
    <?php else: ?>
    <img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); ?>" />
    <?php endif; ?>
    </li>
    <?php endif; ?>
    <?php
    $i = 2;
    while($i <= Avada()->settings->get( 'posts_slideshow_number' )):
    $attachment_new_id = kd_mfi_get_featured_image_id('featured-image-'.$i, 'post');
    if($attachment_new_id):
    ?>
    <?php $attachment_image = wp_get_attachment_image_src($attachment_new_id, 'full'); ?>
    <?php $full_image = wp_get_attachment_image_src($attachment_new_id, 'full'); ?>
    <?php $attachment_data = wp_get_attachment_metadata($attachment_new_id); ?>
    <li>
    <?php if( ! Avada()->settings->get( 'status_lightbox' ) && ! Avada()->settings->get( 'status_lightbox_single' ) ): ?>
    <a href="<?php echo $full_image[0]; ?>" data-rel="iLightbox[gallery<?php the_ID(); ?>]" title="<?php echo get_post_field('post_excerpt', $attachment_new_id); ?>" data-title="<?php echo get_post_field( 'post_title', $attachment_new_id ); ?>" data-caption="<?php echo get_post_field('post_excerpt', $attachment_new_id ); ?>"><img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta($attachment_new_id, '_wp_attachment_image_alt', true); ?>" /></a>
    <?php else: ?>
    <img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_meta($attachment_new_id, '_wp_attachment_image_alt', true); ?>" />
    <?php endif; ?>
    </li>
    <?php endif; $i++; endwhile; ?>
    </ul>
    </div>
    <?php endif; // 3 ?>
    <?php endif; // 2 ?>
    <?php endif; // 1 ?>
    <?php if(Avada()->settings->get( 'blog_post_title' )): ?>
    <?php echo avada_render_post_title( $post->ID, FALSE, '', '2' ); ?>
    <?php elseif( ! Avada()->settings->get( 'disable_date_rich_snippet_pages' ) ): ?>
    <span class="entry-title" style="display: none;"><?php the_title(); ?></span>
    <?php endif; ?>
    <div class="post-content">
    <?php the_content(); ?>
    <?php avada_link_pages(); ?>
    </div>
    <?php if( ! post_password_required($post->ID) ): ?>
    <?php echo avada_render_post_metadata( 'single' ); ?>
    <?php if( ( Avada()->settings->get( 'social_sharing_box' ) && get_post_meta($post->ID, 'pyre_share_box', true) != 'no' ) ||
    ( ! Avada()->settings->get( 'social_sharing_box' ) && get_post_meta($post->ID, 'pyre_share_box', true) == 'yes' ) ):
    $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
    $sharingbox_soical_icon_options = array (
    'sharingbox' => 'yes',
    'icon_colors' => Avada()->settings->get( 'sharing_social_links_icon_color' ),
    'box_colors' => Avada()->settings->get( 'sharing_social_links_box_color' ),
    'icon_boxed' => Avada()->settings->get( 'sharing_social_links_boxed' ),
    'icon_boxed_radius' => Avada()->settings->get( 'sharing_social_links_boxed_radius' ),
    'tooltip_placement' => Avada()->settings->get( 'sharing_social_links_tooltip_placement' ),
    'linktarget' => Avada()->settings->get( 'social_icons_new' ),
    'title' => wp_strip_all_tags(get_the_title( $post->ID ), true),
    'description' => wp_strip_all_tags(get_the_title( $post->ID ), true),
    'link' => get_permalink( $post->ID ),
    'pinterest_image' => ($full_image) ? $full_image[0] : '',
    );
    ?>
    <div class="fusion-sharing-box fusion-single-sharing-box share-box">
    <h4><?php echo __('Share This Story, Choose Your Platform!', 'Avada'); ?></h4>
    <?php echo $social_icons->render_social_icons( $sharingbox_soical_icon_options ); ?>
    </div>
    <?php endif; ?>
    <?php if( ( Avada()->settings->get( 'author_info' ) && get_post_meta($post->ID, 'pyre_author_info', true) != 'no' ) ||
    ( ! Avada()->settings->get( 'author_info' ) && get_post_meta($post->ID, 'pyre_author_info', true) == 'yes' ) ): ?>
    <div class="about-author">
    <?php
    ob_start();
    get_the_author();
    $title = sprintf( '%s %s', __( 'About the Author:', 'Avada' ), ob_get_clean() );
    echo do_shortcode( sprintf( '[title size="3" content_align="left" style_type="default"]%s[/title]', $title ) );
    ?>
    <div class="about-author-container">
    <div class="avatar">
    <?php echo get_avatar(get_the_author_meta ('email'), '72'); ?>
    </div>
    <div class="description">
    <?php the_author_meta ("description"); ?>
    </div>
    </div>
    </div>
    <?php endif; ?>




    <?php
    // Render Related Posts
    echo avada_render_related_posts();
    ?>




    <?php if( ( Avada()->settings->get( 'blog_comments' ) && get_post_meta($post->ID, 'pyre_post_comments', true ) != 'no' ) ||
    ( ! Avada()->settings->get( 'blog_comments' ) && get_post_meta($post->ID, 'pyre_post_comments', true) == 'yes' ) ): ?>
    <?php
    wp_reset_query();
    comments_template();
    ?>
    <?php endif; ?>
    <?php endif; ?>
    </div>
    <?php endwhile; ?>
    <?php wp_reset_query(); ?>
    </div>
    <?php if( $sidebar_exists == true ): ?>
    <div id="sidebar" class="sidebar" style="<?php echo $sidebar_css; ?>">
    <?php
    if($sidebar_left == 1) {
    generated_dynamic_sidebar($sidebar_1);
    }
    if($sidebar_left == 2) {
    generated_dynamic_sidebar_2($sidebar_2);
    }
    ?>
    </div>
    <?php if( $double_sidebars == true ): ?>
    <div id="sidebar-2" class="sidebar" style="<?php echo $sidebar_2_css; ?>">
    <?php
    if($sidebar_left == 1) {
    generated_dynamic_sidebar_2($sidebar_2);
    }
    if($sidebar_left == 2) {
    generated_dynamic_sidebar($sidebar_1);
    }
    ?>
    </div>
    <?php endif; ?>
    <?php endif; ?>
    <?php get_footer();




    // Omit closing PHP tag to avoid "Headers already sent" issues.
     
    Last edited: Sep 17, 2015
  10. bimmerime

    bimmerime Regular Member

    Joined:
    May 14, 2015
    Messages:
    283
    Likes Received:
    18
    tried that but it didn't work
     
  11. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,170
    Likes Received:
    2,387
    Occupation:
    blog creator
    Location:
    UK
    what's the url to your site?
     
  12. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,170
    Likes Received:
    2,387
    Occupation:
    blog creator
    Location:
    UK
  13. Devil Rider

    Devil Rider BANNED BANNED

    Joined:
    Jul 24, 2015
    Messages:
    554
    Likes Received:
    59
    hey,guys thanks for sharing the information...good job
     
  14. browsejobs

    browsejobs Registered Member

    Joined:
    Apr 11, 2016
    Messages:
    56
    Likes Received:
    0
    Home Page:
    if you remove author link
    you will not getting any traffic from google
    so please Don't Remove Author Link