Tagged: x
-
AuthorPosts
-
March 3, 2017 at 1:07 pm #1393641
CEDRICParticipantHello,
I saw this post https://community.theme.co/forums/topic/share-buttons-on-all-blog-post-formats/ which help me.
But I need to add with these social buttons a print button.How can I do that ?
Another issue with these icons… it don’t display : the codes “x-social-XXX” need a update (the original post is from 2014).
Thank marvellous team!
March 3, 2017 at 11:46 pm #1394135
ChristopherModeratorHi there,
Please setup child theme and insert following code in child theme’s functions.php file :
add_filter( 'the_content', 'add_share_button' ); function add_share_button($content){ if ( is_singular('post' || 'page') ) { $content .= do_shortcode('[share title="Share this Post" email="true"]<a class="x-btn" onClick="window.print()">Print this page</a> '); } return $content; }Hope it helps.
March 5, 2017 at 8:18 am #1395070
CEDRICParticipantHello,
Thank you very much.
And there is no possibility to add into this share block a print button, like this :
[share title="Partager" email="true" facebook="true" twitter="true" linkedin="true" google_plus="true" pinterest="true" print="true"]Because, print a page is a sort to sharing information 🙂 no?
March 5, 2017 at 8:30 am #1395078
CEDRICParticipantAnd it is possible to translate tooltip ?
for french version.Thanks
March 5, 2017 at 11:03 am #1395183
ChristianModeratorRegretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/.
Regarding the tooltip, it is not possible out of the box. You can try WPML.
Thanks for understanding. Take care!
March 5, 2017 at 11:32 am #1395212
CEDRICParticipantOK, I find a solution which is acceptable :
//BLOC DE PARTAGE EN BAS DE PAGE add_filter( 'the_content', 'add_share_button' ); function add_share_button($content){ if ( is_singular('post' || 'page') ) { $content .= do_shortcode('<div class="x-content-band vc man" style="text-align:center;"> <div class="x-container max width wpb_row"> [share title="Partager" email="true" facebook="true" twitter="true" linkedin="true" google_plus="true" pinterest="true"] <div class="x-entry-share"> <div class="x-share-options"><a href="#share" data-x-element="extra" data-x-params="{"type":"tooltip","trigger":"hover","placement":"bottom","title":"","content":""}" class="x-share" title="" onclick="window.print()" data-original-title="Imprimer cette page">[x_icon type="print"]</a> </div> </div> </div> '); } return $content; }March 5, 2017 at 11:33 am #1395213
CEDRICParticipantAnd for the translation of tooltip?
March 5, 2017 at 9:04 pm #1395622
RadModeratorHi there,
They are translatable under cornerstone textdomain. How did you translate your site?
You’ll have to translate cornerstone plugin too and not just the theme. If you’re using mo/po files, then you can place the translation to
/wp-content/languages/plugins/with format like cornerstone-de_DE.mo or cornerstone-de_DE.poThanks!
March 6, 2017 at 6:54 am #1396143
CEDRICParticipantThanks it works… but other translation doesn’t work like “Type and press enter to search”.
It is not a cornerstone translation…
And my language setting is in french.Where I can change it?
ThanksMarch 6, 2017 at 7:05 am #1396161
ChristianModeratorIt is a part of X.
<?php _e( 'Type and Press “enter” to Search', '__x__' ); ?>Please see https://community.theme.co/kb/translation/ for X translation instructions.
Thanks.
March 6, 2017 at 7:36 am #1396218
CEDRICParticipantMarvellous.
Thanks
March 6, 2017 at 8:51 am #1396289
JoaoModeratorYou are welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1393641 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
