-
Author
-
December 19, 2015 at 04:14 #94228joyParticipant
Hello, I have two questions about the sharing widget. How do we get the Pintrest share to open in another window(similar to the way Facebook, Twitter, and Google+ function on that widget), and how do I get the email to open up a modal popup instead? Users who try to use the email function will get a security permission request from their computers if they try to email since the function requests to access the users local applications which some may find discouraging. This could be avoided with a form within the page(popup).
Thank you.
December 19, 2015 at 18:37 #94275sharmstrModeratorI’ve updated the code to open a new window. If the developers approve it, it will be in the next update. Until then, you can edit /kleo/page-parts/posts-social-share.php
Change the pinterest code from this
COPY CODE<span class="kleo-pinterest"> <a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if (function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo strip_tags(get_the_title()); ?>"> <i class="icon-pinterest-circled"></i> </a> </span>
to this
COPY CODE<span class="kleo-pinterest"> <a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if (function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo strip_tags(get_the_title()); ?>" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"> <i class="icon-pinterest-circled"></i> </a> </span>
As far as the email form goes, you’d have to code that yourself.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 22, 2015 at 00:26 #94739joyParticipantFor the email form on the social share widget is there a way i can hook into the floating contact form function?
December 22, 2015 at 00:34 #94744sharmstrModeratorYou’d have to rewrite the whole function to include a link to the page and to send to someone else.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.