Home Forums WoodMart support forum Suddenly unwanted -tags next to form fields

Suddenly unwanted -tags next to form fields

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #541739

    BPP
    Participant

    I have unwanted <br>-Tags that suddenly appeared next to some form fields (see the examples in the screenshots). Do you have an explanation and a way to solve this?

    Attachments:
    You must be logged in to view attached files.
    #541965

    BPP
    Participant
    #542011

    Hung Pham
    Participant

    Hi BPP,

    Thanks for reaching to us.

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,

    #542289

    BPP
    Participant

    I’ve added the credentials.

    #542611

    Hung Pham
    Participant

    Hi BPP,

    It caused by additional plugins, I reactivated all plugins. You should deactivate all plugins by yourself (except Required Plugins) and then reactivate them one by one. This makes it very easy to isolate the plugin causing problems.

    In case you want to keep using extra plugins, please add the following Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:

    .woocommerce-account form.woocommerce-form br {
        display: none;
    }

    Regards,

    #542616

    BPP
    Participant

    OK i will give it a try. Maybe i can determine the root cause, it’s not only the register form that is affected.

    #542688

    Hung Pham
    Participant

    Hi BPP,

    Keep us in mind for future questions and concerns, we’re always here to help!

    Regards,

    #545134

    BPP
    Participant

    After some further investigation the Problem seems to manifest when using SEO-plugins, in my case RankMath.

    The Support from RankMath provided me with a workaround in form of a code-snippet but also pointed out that it’s ultimatly a theme-problem.

    Can you comprehend their explanation as pointed out below and provide a definitive fix for this?

    The issue was from the Woodmart theme utilizing the get_the_excerpt filter, which adds those line breaks when a description is not added to a page. The get_the_excerpt function appears to be the cause of the issue.

    This issue isn’t exclusive to the Rank Math plugin; it’s likely to occur with other SEO plugins as well. I recommend reaching out to the Woodmart team so they can take a look at this.

    For now, to fix the issue on your site, I’ve added a dummy description to the Register page using the following filter code in the Code Snippet “Rank Math SEO – Add description to register page”.

    add_filter( 'rank_math/frontend/description', function( $description ) {
        // Check if the current page is the register page
        if ( isset( $_GET['action'] ) && $_GET['action'] === 'register' ) {
            return 'Create your account and start using our services today.';
        }
    
        return $description;
    });

    #545301

    Hung Pham
    Participant

    Hi BPP,

    Our developer took a look and this problem is not related to our WoodMart theme.

    After checking this problem in more detail, the Account page was made using Elementor https://monosnap.com/file/Idp7P3Dmxc8sK4o2NAq0QKJwL6LUWs. That’s why it added <br> tag.

    To solve this problem, you need the page to have only a shortcode from WooCommerce https://monosnap.com/file/XPvrHVv4JAXfciBLqClQvhISaipmKQ

    Regards,

    #546805

    BPP
    Participant

    This site does not actually use any Elementor functionality so i reverted it to “standard”.

    While this works for me you might consider fixing this together with the folks from Elementor as only a compatible page builder is a useful page builder.

    #546847

    Hung Pham
    Participant

    Hi BPP,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    Regards,

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