Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1029464

    Hi Support,

    I noticed today on a clients site that the Enfold Twitter Share button is resolving the share URL using the p=5811 format, e.g.
    https://rotanaty.com/?p=5811 – how do I get it to display, https://rotanaty.com/2018/10/31/stay-fresh-ask-questions-seek-answers/ in the shared tweet?

    Thanks in advance,
    Paul

    #1030446

    Hey Paul,

    Can you explain a bit more, how and where do you need that? The p=5811 redirected to the other link on my end.

    Best regards,
    Victoria

    #1030848

    Hi Victoria,

    Thanks for your reply. My rationale is that links shared to social channels with only the p=xxx will adversely affect SEO. When I review the original demo site for Enfold and an example blog post, I note that all the social share buttons resolve the full URL apart from Twitter which uses the p=xxx. So, I guess I’m wondering why that is…

    For example, on my Blogger site I have a Twitter Share button applied and when clicked this resolves the whole URL, which of courses contain important keywords for SEO (purpose, education), ie. https://simbeck-hampson.blogspot.com/2011/03/the-purpose-of-education.html

    Look forward to your thoughts on this, and perhaps a solution too.
    Paul

    #1032077

    Hi Paul,

    Your links are showing this p=xxx because this is probably set in the permalinks settings. You might want to check that first.

    Best regards,
    Victoria

    #1032083

    Hi Victoria,

    Thanks for the reply. That was the first thing I checked. My permalink structure is set to Day & Name, ie.: https://supro.co/2018/11/10/sample-post/, so should be displaying the post url in full, as it does for other social share buttons. I’m also guessing you don’t have plain permalinks selected on the Enfold 2017 demo site, where the same p=xxx can be found when using the Twitter share button on one of your own blog post examples.

    It seems to be a problem with the share button code. Is there anything else you can suggest.

    Many thanks,

    #1033256

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #1033505

    Hey Basilis / Victoria, thanks for the reply. Before giving access to my clients site, I thought this short screenshare may help you see the problem live on your Enfold 2017 demo site – seems to be same issue that needs resolving: https://www.useloom.com/share/0d05e9cbc4d44d0bb3154fa79325bcf0

    Regards,
    Paul

    #1034170

    Hi everyone,
    I have the same issue with the Twitter share button but also another issue with the facebook share button. My apologies as I am not quite sure if this is should be posted here as I could not find the answer: When I use the facebook share button instead of showing the link it shows the the pagename and then – WordPress (the word WordPress). How could this be fixed. My permalinks settings are under …/sample-post/.

    Thank you!

    #1034393

    Hi,

    That is the default pattern of the twitter share button. The url parameter contains the shortlink instead of the post permalink. You can change that with the “avia_social_share_link_arguments” filter.

    Example:

    
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
        $permalink = get_the_permalink(get_the_ID());
        $args['twitter']['pattern'] = 'https://twitter.com/share?text=[title]&url=' . $permalink;
        return $args;
    }

    Best regards,
    Ismael

    #1034412

    Much appreciated Ismael, your fix works a treat.

    #1034670

    Hi,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1039549

    Hi guys,
    for some days it seemed to be ok but I now have again the same issue as I mentioned a couple of weeks ago:

    When I use the facebook share button instead of showing the link it shows the the pagename and then – WordPress (the word WordPress). How could this be fixed. My permalinks settings are under …/sample-post/.

    Can somebody assist me here or should I maybe start a new thread?

    Thank you,
    Vasilis

    #1039843

    Hi Vasilis,

    You can control that using a plugin like Yoast SEO

    Best regards,
    Rikard

    #1040495

    Thank you @Rikard,
    I have used this plugin on a different site and indeed it does not show the Word “WordPress”. I was wondering if it is possible with any code without installing any plugin.

    Thank you!

    #1040631

    Hi,

    It’s likely the site title or tagline, try checking under /wp-admin/options-general.php

    Best regards,
    Rikard

    #1041197

    I was looking and couldn’ t find it.
    I am sure that other share buttons would ok, but I would try to use Enfold’s share buttons.

    #1041395

    Hi samvasgr,

    Let us know how that worked for you.

    Best regards,
    Victoria

    #1041428

    HI @Victoria,
    I have still worked it out…. I do not know now where to find it…

    #1041969

    Hi,

    Can you give us a link to the page in question? Please open a new ticket and post the site url in the private field. We’ll close this one for now.

    Best regards,
    Ismael

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Twitter Share Button not resolving full URL’ is closed to new replies.