How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Social Share problem

Viewing 10 posts - 11 through 20 (of 25 total)
  • Author
    Posts
  • #18047
    admin
    Keymaster

    Hi Ricardo,
    Here is the fix of Page title share problem:

    function poka_social_share()
    	{
    		global $post;
    		$permalink = esc_url(get_permalink($post->ID));
    		$title = get_the_title();
    		$title_encoded = rawurlencode($title);
    ?>
    
    		<ul class="social-icons">
    			<li>
    				<a class="icon poka-facebook icon-btn icon-btn--gray jsSocialShareIcon" href="http://www.facebook.com/sharer.php?u=<?php echo esc_url($permalink); ?>" title="<?php esc_html_e('Share on Facebook', 'poka'); ?>" data-width="520" data-height="350" rel="nofollow"></a>
    			</li>
    			<li>
    				<a class="icon poka-twitter icon-btn icon-btn--gray jsSocialShareIcon" href="http://twitter.com/share?text=<?php echo esc_attr($title_encoded); ?>&url=<?php echo esc_url($permalink); ?>" data-width="520" data-height="350" title="<?php esc_html_e('Share on Twitter', 'poka'); ?>" rel="nofollow">
    				</a>
    			</li>
    			<li>
    				<a class="icon poka-envelope icon-btn icon-btn--gray" href="mailto:?subject=<?php echo rawurlencode(__('I wanted you to see this site', 'poka')); ?>&body=<?php echo rawurlencode(__('Check out this site:', 'poka')); ?>&nbsp;<?php echo esc_url($permalink); ?>" data-width="520" data-height="350" title="<?php esc_html_e('Share by email', 'poka'); ?>" rel="nofollow">
    				</a>
    			</li>
    		</ul>
    
    <?php
    	}
    
    
    #18048
    Ricardo Nuno
    Participant

    Hi,

    I confirm that it is now ok, thanks!

    #18050
    admin
    Keymaster

    You’re welcome!

    #18064
    admin
    Keymaster

    This is just an update that we have released a new PokaTheme version and we have included a fix for this issue, too. Feel free to check your account downloads and get the latest version!

    #18069
    Ricardo Nuno
    Participant

    Thanks for information.

    #18080
    Ricardo Nuno
    Participant

    Hi,

    Today I checked the problem again, but with other characters,

    Title: Bet now annd (use code ‘bet’)

    In share button: Bet now annd (use code ‘bet’) url….

    #18105
    admin
    Keymaster

    Hi Ricardo,

    What is the issue here? Which characters are causing issues?

    #18107
    Ricardo Nuno
    Participant
    This reply has been marked as private.
    #18118
    admin
    Keymaster

    Hi Ricardo,

    What exactly is the issue? The conversion of character ‘ to ‘ when sharing on Twitter, or something else?

    #18119
    Ricardo Nuno
    Participant
    This reply has been marked as private.
Viewing 10 posts - 11 through 20 (of 25 total)
  • You must be logged in to reply to this topic.