Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #516061

    Hi Kriesei team!

    I followed the instructions in another thread and removed the author and category meta information on my blog posts using display: none in the css. I’ve also unchecked those elements in the Blog Layout tab of the theme options. The information seems to show up when I click on the Share this Entry on Facebook. How do I remove that from being shared when someone wants to share the blog post via Facebook? Many thanks for your help and I’ve included a link a blog post on my dev server below.

    Also, if you could share a method of reducing the size of the window for each social platform, that would be great!

    Many thanks for your help.

    #516801

    Hey dialedinmarketing!

    Thank you for using Enfold.

    You need to remove the post meta info completely. Edit includes > loop-index.php file, remove this block of codes:

    
                    echo "<span class='post-meta-infos'>";
                    $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false));
                    echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>";
                    echo "<span class='text-sep text-sep-date'>/</span>";
    
                        if ( get_comments_number() != "0" || comments_open() ){
    
                        echo "<span class='comment-container minor-meta'>";
                        comments_popup_link(  "0 ".__('Comments','avia_framework'),
                                              "1 ".__('Comment' ,'avia_framework'),
                                              "% ".__('Comments','avia_framework'),'comments-link',
                                              "".__('Comments Disabled','avia_framework'));
                        echo "</span>";
                        echo "<span class='text-sep text-sep-comment'>/</span>";
                        }
    
                        $taxonomies  = get_object_taxonomies(get_post_type($the_id));
                        $cats = '';
                        $excluded_taxonomies =  apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
    
                        if(!empty($taxonomies))
                        {
                            foreach($taxonomies as $taxonomy)
                            {
                                if(!in_array($taxonomy, $excluded_taxonomies))
                                {
                                    $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
                                }
                            }
                        }
    
                        if(!empty($cats))
                        {
                            echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
                            echo $cats;
                            echo '</span><span class="text-sep text-sep-cat">/</span>';
                        }
    
                        echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
                        echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>';
                        echo '<span class="vcard author"><span class="fn">';
                        the_author_posts_link();
                        echo '</span></span>';
                        echo '</span>';
                        echo '</span>';
                    echo '</span>';

    Best regards,
    Ismael

    #518138

    Hi Ismael,

    Thanks for the reply. But I’m only looking to remove the meta info from the Facebook Sharing part and keep the post date information on the actual page still. Is there a way to do that?

    #518485

    Hi,

    I’m no expert on the subject but you could try using an SEO plugin like Yoast SEO to specify what you are sharing, I’m not sure if that will work or not but you can give it a try. What Facebook decides to include in what you share is not something we control with the theme.

    Best regards,
    Rikard

    #518505

    Rikard is correct, you can use Yoast for this.

    If you are however using a different social sharing plug in for your website you will have to check with the plug in author.
    For my popular travel website http://www.bigboytravel.com, which is Enfold, I have have tried 3 social sharing plug ins (Social Warefare, Ultimate Social Share, and Easy Social Share). Enfold worked seamlessly with all three plugins. I have found Easy Social Share to work the best with Enfold for fan counters, side bar sharing widgets, image hover share, and short code sharing and has many options to customize sharing on a site wide and page level manner for Facebook, Twitter, and more. For basic stuff try Yoast.

    These plugins work not by hiding your data but instead by letting your dictate what title, description, and image are featured when the share happens.

    #518707

    Hey!


    @millertimesites
    Thank you for your input :)

    Cheers!
    Yigit

    #518749

    Hi everyone,

    Thanks for the excellent suggestions and comments. Yoast is working perfectly as a solution to my problem. I’m currently using the Enfold social sharing options but if I ever decide to go with something else, I’ll definitely take millertimesite’s suggestions. Thanks again for all your help. Please close this thread!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Share This Entry: Facebook – Remove author / category / post date’ is closed to new replies.