• Resolved PositiveMostOfTheTime

    (@positivemostofthetime)


    This code from the Wishpond website in order to remove the header and footer from the original them page.
    I don’t know JS can someone help please.

    <script>
    ERROR: Expected an identifier and instead saw ‘<‘. MIssing “;” before statement

    var wp = jQuery(‘.wishpond-campaign’);
    ERROR: Expected an identifier and instead saw ‘var’.
    Unrecoverable syntax error (42% scanned.)

    jQuery(‘body’).html(wp) ;

    </script>

Viewing 1 replies (of 1 total)
  • Thread Starter PositiveMostOfTheTime

    (@positivemostofthetime)

    Solved! I figured it out myself. But I did contact Wishpond support via chat and I have to say they do really really great support. The guy was really patient and did everything he could to help me. I had to make an appointment so I had to disconnect.

    The JavaScript error happened when using Beaver Builder’s Tool to add JS to a specific page. If you want to remove the header and footer of your Wishpond landing page you have to paste some JS code. There is a conflict if pasted via the BB tool. Instead I pasted it directly into the text editor and it worked! Just thought I would share that in case anyone else has this issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript code Error’ is closed to new replies.