Tagged: x
-
AuthorPosts
-
January 12, 2017 at 3:18 pm #1327750
Headlines34ParticipantHi,
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,
ChuckJanuary 12, 2017 at 6:44 pm #1327939
NicoModeratorHi 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.
January 12, 2017 at 10:33 pm #1328269
Headlines34ParticipantI 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
January 13, 2017 at 12:29 am #1328372
LelyModeratorHi 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.
January 14, 2017 at 7:44 pm #1330355
Headlines34ParticipantThis reply has been marked as private.January 14, 2017 at 8:25 pm #1330379
Headlines34ParticipantNeed to add:
Facebook
Twitter
Pinterest
EmailJanuary 15, 2017 at 1:50 am #1330566
Rue NelModeratorHello 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.
January 16, 2017 at 3:26 pm #1332615
Headlines34ParticipantThis reply has been marked as private.January 17, 2017 at 12:06 am #1333074
LelyModeratorHello 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1327750 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
