- This topic has 10 replies, 4 voices, and was last updated 4 years, 1 month ago by
wensolutions.
-
AuthorPosts
-
August 17, 2018 at 2:17 pm #7802
privatejeep
ParticipantHow can I add social sharing buttons on all my trip pages? Why is there no option for this built in?
Here is my trip page. Yet there is no way to click a button to share this page. I need sharing buttons please.
August 17, 2018 at 2:32 pm #7804privatejeep
ParticipantAlso why is the forum search password protected? I can no longer search the forum without a password which I don’t have?
August 20, 2018 at 5:50 am #7818Support Team
KeymasterHello @privatejeep,
If you wish to add Travel Log social share links in the Trips Single page, you can do so by adding the following custom code in your Child theme’s functions.php file :
function travel_log_custom_trip_share() { do_action( 'travel_log_social_share' ); } add_action( 'wp_travel_single_after_booknow', 'travel_log_custom_trip_share' );
This will add the social sharing options in the trips page below the Trip Code in trips single page.
Regarding the “Password Protected” search archive ( results ) page, the issue is now resolved and the forum topics can now be searched without requiring any passwords.
If you have any queries/issues or requests further, please feel free to write back to us.
Best Regards !!
August 21, 2018 at 8:30 pm #7852privatejeep
ParticipantThanks can we add in some text that says “Share”.
August 22, 2018 at 10:04 am #7874Support Team
KeymasterHello @privatejeep,
Please add the following custom CSS to get the “Share” text before the sharer icon :
.single-itineraries .share-handle.card-share::before { content: 'Share:'; display: inline-block; font-weight: 700; vertical-align: 10px; } .single-itineraries .share-handle .social-reveal { left: auto; } .single-itineraries .btn-floating.share-toggle.float-right { float: none; }
Hope this Helps,
Best Regards !!
August 22, 2018 at 10:41 am #7875privatejeep
ParticipantThank You yet again! However, there is a BUG with the Share button on mobile devices. 🙁 When you click on the share button it opens to the left and goes off-screen and covers the “share” text. The Facebook link is lost off-screen. The pop open needs to open to the right always.
Here is a screen-shot of the bug:
August 22, 2018 at 11:43 am #7878Support Team
KeymasterHello @privatejeep,
Please REPLACE the above custom CSS with the one below to resolve the “Share” icon bugs :
.single-itineraries .share-handle.card-share::before { content: 'Share:'; display: inline-block; font-weight: 700; vertical-align: 10px; } .single-itineraries .share-handle .social-reveal { left: auto; } .single-itineraries .btn-floating.share-toggle.float-right { float: none; } @media screen and (max-width: 992px) { .single-itineraries .share-handle .social-reveal { min-width: auto; right: -135px; } }
If you have any queries/issues or requests further, please feel free to write back to us.
Best Regards !!
August 23, 2018 at 7:12 am #7891privatejeep
ParticipantThank You! This updated css code fixed the motile share button! 🙂
August 23, 2018 at 7:58 am #7896Support Team
KeymasterHello @privatejeep,
Glad to know your issue has been resolved.
If you have any issues/queries or requests further, please feel free to write back to us.
Best Regards !!
October 16, 2019 at 7:28 am #20611Zamfari
ParticipantHello WP Travel –
since I have a problem with AddThis I searched for another way to put the social sharing buttons on the trip pages. I found this and I did include it in my Child theme’s functions.php file :
function travel_log_custom_trip_share() {
do_action( ‘travel_log_social_share’ );
}
add_action( ‘wp_travel_single_after_booknow’, ‘travel_log_custom_trip_share’ );This function still includes a link for Google+ which is obsolet since April 2019.
How can this link be removed and links for Whatsapp, LinkedIn, Email added?
Thank you very much in advance.
October 16, 2019 at 11:34 am #20619wensolutions
KeymasterHello @zamfari,
You can turn off the google plus link from the customizer itself.
So go to Admin Panel > Appearance > Customize > Theme Options > Social Share and disable the option.
Screenshot:
https://prnt.sc/pk17ukHope this helps.
Thank you.
-
AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.