• Hello,

    I had recently opened a topic about this already, but back then I thought this was an issue of the Pinegrow Theme Converter Application. However, I found out now that Pinegrow has nothing to do with the problems I am experiencing and that’s why I am trying now again to get some help.

    Basically, I am designing & building my website in Webflow. Webflow also has the option to export your entire code so that you can host the site somewhere else. I want to learn how to convert my Webflow website to wordpress. However, no matter if I use an application like the Pinegrow Theme converter or create a new theme myself with header.php, footer php, functions.php, style.css, index.php etc., whenever I convert my exported code from Webflow to WordPress, for all pages that are NOT index.php most of my javascript doesn’t work anymore.

    However, the code should be fine bc when I open my exported code files from Webflow directly in a browser, everything looks and works exactly as it does in Webflow. It’s just when I convert it to WordPress (manually or with an application like Pinegrow) that all pages that are not index.php have issues with the javascript.

    I also had reached out to the Pinegrow support but they basically just said that the html needs some fine tuning to correctly enqueue the javascript as well as inline javascript. I am just confused why everything works great on the index.php site but not on the other pages.

    When I inspect my pages in chrome, I get the following issue:

    [email protected]:10 Uncaught TypeError: Cannot read property 'tagName' of null
        at t.value ([email protected]:10)
        at new t ([email protected]:10)
        at (index):219

    [Moderator note: Please try https://jobs.wordpress.net/ or https://jetpack.pro/ and do not accept any hire offers posted to these forums.]

    Many thanks in advance for any pointers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi.
    This is just FYI.

    https://github.com/mattboldt/typed.js/issues/274

    Good luck!

    Thread Starter jana90

    (@jana90)

    Hello again,

    so after a long time experimenting with my code, I figured out now why my javascript wasn’t working when I exported and converted my Webflow website to WordPress. And it is actually due to a specific Webflow code.

    In Webflow each html page has a unique Webflow page id, shown on each html file as:

    <html data-wf-page=“5eb266f71471ff7a36bb2084” data-wf-site=“5ea1e0ec9c38e73c61dbc9ad” lang=“en”>

    When I exported the code and then converted it to wordpress, wordpress only took the data-wf-page id from my index.html into header.php but not from the other pages and that is what is causing the issues with javascript on my other pages.

    However, I don’t know how to include the other data-wf-page numbers (from my other pages) into the header.php file. To me it seems like, whatever data-wf-page is first, is the only one that is being ‘read’ then. So if I copy and paste the other data-wf-page numbers behind the existing one, they are just being ignored.

    Can anyone help me and let me know how I can include all data-wf-page numbers from all pages to make my javascript work?

    Would really appreciate if someone could help me with this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript issues when I convert my website to Wordpres’ is closed to new replies.