Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17718

    Hello,

    I’ve recently set up a blog page and for some reason, there is a large amount of white space below each post followed by:

    “0 Comments and 0 Reactions/0 Likes/0 Tweets/”

    How do I go about removing this large amount of white space and the information above? I’ve installed a social sharing plugin, so I don’t need the information mentioned twice.

    Thanks.

    #96590

    Hi hutzelm,

    It looks like the facebook iframe is getting a weird height on its iframe. Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    #Facebook_Counter iframe {
    height: 32px !important;
    }

    Regards,

    Devin

    #96591

    Hey Devin,

    That worked great for the white space. Is there a way to remove the mention of comments, reactions likes and tweets (and only have the “in [tags]” portion of the text be available beneath each post)?

    If not, is there a way I can remove all of it then? It just seems repetitive with our social sharing plugin.

    Thanks.

    #96592

    You’ll need to edit the loop for that. Go to your theme files via ftp and open includes>loop-index.php and look for:

    <div class='post-meta-infos'>

    <?php

    if(comments_open() || get_comments_number())
    {
    echo "<span class='comment-container minor-meta'>";
    comments_popup_link(" <span>0 ".__('Comments','avia_framework')."</span>",
    " <span>1 ".__('Comment' ,'avia_framework')."</span>",
    " <span>% ".__('Comments','avia_framework')."</span>",'comments-link',
    __('Comments Off' ,'avia_framework'));
    echo "</span><span class='text-sep comment-container-sep'>/</span>";
    }

    echo '<div class="like-count minor-meta">';
    echo avia_facebook_like($id);
    echo '</div><span class="text-sep like-count-sep">/</span>';

    echo '<span class="tweets-count minor-meta">';
    echo avia_retweet($id);
    echo '</span><span class="text-sep tweets-count-sep">/</span>';

    $cats = get_the_category();
    if(!empty($cats))
    {
    // __('posted in','avia_framework')
    echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
    the_category(', ');
    echo ' </span>';
    // echo '<span class="text-sep cat-sep">/</span>';
    }

    /*
    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep author-sep">/</span>';

    echo '<span class="blog-permalink minor-meta">';
    echo "<a href='".get_permalink()."'>".__('#permalink','avia_framework')."</a>";
    echo '</span>';
    */

    ?>

    </div>

    Replace that whole block with:

    <div class='post-meta-infos'>

    <?php

    $cats = get_the_category();
    if(!empty($cats))
    {
    // __('posted in','avia_framework')
    echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
    the_category(', ');
    echo ' </span>';
    // echo '<span class="text-sep cat-sep">/</span>';
    }

    /*
    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep author-sep">/</span>';

    echo '<span class="blog-permalink minor-meta">';
    echo "<a href='".get_permalink()."'>".__('#permalink','avia_framework')."</a>";
    echo '</span>';
    */

    ?>

    </div>

    Then save the file back onto your server so it overwrites the old one.

    Regards,

    Devin

    #96593

    Worked out great!

    Thanks for all the help Devin!

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

The topic ‘Removing White Space and Social Sharing Information’ is closed to new replies.