HTML showing in form field subject when click on shortcode button / fep_shortcod


Home Forums Front End PM PRO HTML showing in form field subject when click on shortcode button / fep_shortcod

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43701
    Vishy
    Participant

    Hi,

    the subject field of the send form is showing HTML code like below when I click on shortcode button created on author page.
    I am using EDD ecommerce plugin. and the button is on EDD product page.

    <span itemprop=”name”>xyz product name is here</span>

    someone with Kadence theme and some other plugin was also facing same issue with EDD which they fixed. here is the link to that… https://www.kadencewp.com/support-forums/topic/how-to-fix-broken-text-in-header-of-a-download-page-edd/

    its login required. so below is text….

    Brenda
    JANUARY 20, 2018 AT 4:05 PM #175865
    I’ve got ASCEND on two of my sites. Love it. I see that I can choose what I’d like to show up in the header for blogs and pages (e.g. blog post name or category name) and it looks great on all pages except the Easy Digital Download pages. There —

    Instead of seeing just the name of the Download I see the name inside of the following:

    <SPAN ITEMPROP=”NAME”>download name</SPAN>

    Can you please tell me how to fix this? I really appreciate it. We only have EDD downloads available to logged in users so they’re the only ones who see it but it’s not professional looking. We don’t use WooCommerce on this site but perhaps we will have to do so and get rid of EDD.

    REPLY

    Brenda
    JANUARY 20, 2018 AT 4:09 PM #175866
    This reply has been marked as private. REPLY

    Hannah
    JANUARY 21, 2018 AT 9:39 PM #175966
    Hi Brenda,
    I’m not able to make this issue repeat on your site. Have you cleared your cache? Can you send a screenshot?
    Thanks!

    Hannah

    REPLY

    Ben Ritner
    JANUARY 22, 2018 AT 10:25 AM #176035
    Hmm, that is strange EDD is output html in the get_title call. Odd, the output is escaped using esc_html which is pretty standard. I suppose I can add a filter on that in the next update which will resolve this although adding ITEMPROP there doesn’t really make much sense to me but it’s not a huge deal.. Look for the update tomorrow that will fix this.

    Ben

    REPLY

    Brenda
    JANUARY 24, 2018 AT 6:10 PM #176397
    Thanks! the update fixed it.

    REPLY

    #43714
    Shamim Hasan
    Keymaster

    Which shortcode you are using?

    #43718
    Vishy
    Participant

    [fep_shortcode_message_to to="{current-post-author}" text="Contact Seller"]

    #43724
    Shamim Hasan
    Keymaster

    As html is added in title which you do not want, can you add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_filter_form_field_before_output', function( $field, $where ){
        if( 'message_title' === $field['key'] ){
            $field['posted-value'] = strip_tags( $field['posted-value'] );
        }
        return $field;
    },10, 2);
    

    Let me know.

    #43727
    Vishy
    Participant

    nice. it worked. thank you!

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

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.