This topic has 5 replies, 2 voices, and was last updated 8 years by joy.

  • Author
  • #94228
     joy
    Participant

    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.

    #94275
     sharmstr
    Moderator

    I’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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #94728
     joy
    Participant

    Perfect! Thank you!

    #94739
     joy
    Participant

    For the email form on the social share widget is there a way i can hook into the floating contact form function?

    #94744
     sharmstr
    Moderator

    You’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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #94746
     joy
    Participant

    Oh that’s right, I forgot that the form is coded to send to a specific email in our options. I just don’t know how to trigger a page into a modal. I’ll poke around and see what I can find. Thank you again.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?