Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1327750
    Headlines34
    Participant

    Hi,

    In regards to this post: https://community.theme.co/forums/topic/share-buttons-on-all-blog-post-formats/
    What would the code be to only display: Facebook, Twitter, Pinterest, Instagram, Youtube and Email?

    Thank you,
    Chuck

    #1327939
    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    To show only the given icons above:

    <?php echo do_shortcode( '[share title="Share this Post" facebook="true" pinterest="true" twitter="true" google_plus="true" email="true"]' ); ?>

    Hope it helps.

    Let us know how it goes.

    Thanks.

    #1328269
    Headlines34
    Participant

    I need to show these: Facebook, Twitter, Pinterest, Instagram, Youtube and Email
    Not Google+, unless that’s YouTube since YT is a Google company and there’s no YT option?

    This is the site where I am trying to show those icons in the blog pposts: http://77.104.145.250/~artillio/chicmoto.com/

    Thanks

    #1328372
    Lely
    Moderator

    Hi There,

    Please check this link for available options: http://demo.theme.co/integrity-1/shortcodes/entry-share/
    <?php echo do_shortcode( '[share title="Share this Post" facebook="true" twitter="true" pinterest="true" email="true"]' ); ?>

    Unfortunately, instagram and youtube is not available. It could be possible with some custom development that is outside the scope of our support. Thank you for understanding.

    #1330355
    Headlines34
    Participant
    This reply has been marked as private.
    #1330379
    Headlines34
    Participant

    Need to add:
    Facebook
    Twitter
    Pinterest
    Email

    #1330566
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! I have checked your site with the given information. I see that you do no have a child theme installed. You will be needing to have a child them and apply the suggestions in the other thread. Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Please let us know how it goes.

    #1332615
    Headlines34
    Participant
    This reply has been marked as private.
    #1333074
    Lely
    Moderator

    Hello There,

    You’re currently using Integrity stack.
    For that to work, please copy content.php from this folder: \wp-content\themes\x\framework\views\integrity to the same folder on your child theme here:\wp-content\themes\x-child\framework\views\integrity. Open the copied file, and add the following code:
    <?php echo do_shortcode( '[x_share title="Share this Post" facebook="true" twitter="true" google_plus="true" email="true"]' ); ?>
    After this line of code: <?php x_get_view( 'global', '_content' ); ?>
    Final code should be something like this:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Standard post output for Integrity.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-featured">
        <?php x_featured_image(); ?>
      </div>
      <div class="entry-wrap">
        <?php x_get_view( 'integrity', '_content', 'post-header' ); ?>
        <?php x_get_view( 'global', '_content' ); ?>
       <?php echo do_shortcode( '[x_share title="Share this Post" facebook="true" twitter="true" google_plus="true" email="true"]' ); ?>
     </div>
      <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
    </article>
    

    That should work after that. In case, you still have issue, we need your FTP credentials to check. You may provide it on a private reply.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1327750 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>