Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #310944

    When I use the Email Share button, the subject line appears as: <span class=”p-summary”>Post Title</span>

    My default email client is Gmail.

    Is this a bug with enfold or with Gmail?

    Thanks,
    H

    #311024

    Hey Heathcliffe!

    Is it the gmail app? The mailto link on a post doesn’t even have that span in it so I don’t know where it could be coming from :)

    Best regards,
    Devin

    #311061

    Hi @Devin

    No, this is on my desktop. Not looked at mobile devices yet.
    However, this is not a standard “Enfold” post. It is a Time.ly Events post.

    I have posted login details on this Support # https://kriesi.at/support/topic/facebook-social-shareing-not-picking-up-the-correct-image/
    as I am also having issues around Facebook sharing if you wanted to take a look ?

    Many thanks,
    H

    #311136

    Hi!

    Thank you for the update.

    I’m sorry but we cannot provide support for third party plugins or scripts as stated on our support policy due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Your best chance is to go to ask the plugin author about the issue.

    Best regards,
    Ismael

    #311628

    @Ismael, @Devin

    Hi Guys, I appreciate your help on this and understand you can not support third party products. I have been on the plugin support forum and see that they suggest the Enfold theme is causing the problem. Here is the explanation, perhaps one for Kriesi to look at?
    (I have made the changes they suggested and this fixes the problem). Another example was the twitter Share button. Example:

    The Twitter share button for a Normal Enfold Blog Post would be:

    http://twitter.com/home?status=Test%20Post%20websitedomainname/?p=466

    and yet the Ai1ec post would be:

    http://twitter.com/home?status=%3Cspan%20class%3D%22p-summary%22%3ETest%20Post%20%3C%2Fspan%3E%20websitedomainname/?p=466

    Plugin Support Forum Says this:

    Your theme doesn’t support the title of a post having HTML. You should get your theme author to fix this. It breaks plugins like Ai1ec, as well as the WP-Typography plugin.

    If the theme uses the function the_title(), the theme author needs to change it to use the_title_attribute().

    If it uses get_the_title(), then the theme author needs to strip HTML tags from the title manually, or escape them using something like the WP function esc_attr().

    To change ai1ec to work around this bug, edit …../all-in-one-event-calendar/lib/http/response/render/strategy/html.php and comment out a line.

    The line to comment out is line 99:

    $title = ‘<span class=”summary”>’ . $title . ‘</span>’;
    So you should end up with:

    // $title = ‘<span class=”summary”>’ . $title . ‘</span>’;
    Try that and see if it solves many of your problems.

    The forum link is here: https://time.ly/forums/topic/enfold-buggy-calendar/#post-151286

    #312406

    Hey!

    You can also remove the tags by editing wp-content/themes/enfold/includes/helper-social-media.php – open up the file and replace:

    
    $replace['title'] 		= !isset($this->post_data['title']) ? get_the_title() : $this->post_data['title'];
    

    with

    
    $replace['title'] 		= !isset($this->post_data['title']) ? wp_strip_all_tags(get_the_title()) : $this->post_data['title'];
    

    We’ll add a filter to helper-social-media.php with the next update – then you can overwrite the “$replace[‘title’]” value with a child theme if necessary.

    Regards,
    Peter

    #312567

    @Dude,

    Thank Peter. So just to clarify the process I should go through?

    I made the work around as suggested by Time.ly (I presume this will be overwritten if and when they do an update) ?

    I already have an Enfold Child Theme set up (followed the great vid you guys posted)

    So should I create a new file called helper-social-media.php and just put the second line you suggest above?
    and at what level in the child directory should I add it? do i make a new folder too?

    Sorry, just not too technical yet. I need step by step instructions. Hope you can assist.

    Many thanks,
    H

    #312575

    Hey there!!!

    I’m starting with the enfold theme and I’m using Contact Forms but I didn’t receive the email when I completed the form. I’m using Gmail!. Did you can help me with this problem?

    Many thanks,
    Roger

    #313653

    Hey @Heathcliffe!

    No, you should directly edit the parent theme file Peter mentioned:

    /wp-content/themes/enfold/includes/helper-social-media.php


    @rogerdp
    , please create another topic regarding your issue so we can give you a better assistance.

    Best regards,
    Josue

    #326807

    Thanks @Josue,

    I have edited the file. How will i know which update the change is in, and when (if) I need to add it to a child file.

    H

    #326831

    Hi!

    You can put the whole class avia_social_share_links (129-241) in your child functions.php, that should override the parent one.

    Best regards,
    Josue

    #338014

    Thanks @Josue,

    I have now done that.

    H

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Email Social Share Button’ is closed to new replies.