JS & Code in Wordpress

Out of context: Reply #15

  • Started
  • Last post
  • 21 Responses
  • cherub0

    @sted:

    The slug thing is annoying but not crucial. Not being able to do simple things like insert javascript and php in the appearance>customize panel, that's more serious bcuz it is currently keeping me from getting the site working properly. There of course doesn't exist a widget that would let you insert your entire index.html code(mine has php and javascript) and separate the html, css, php, and javascript parts into where they should be inside wordpress.

    Overall, what I think you are saying is all of this can be manipulated if you have the skills(I don't) to edit your functions.php file.

    The cheat sheet I got from reddit:
    How to import an entire site by hand?

    "You should cut your html into different parts, header/footer,sidebar, & create a theme. Use basic template, keep the php, & place your html around."

    answer#2
    "yes, make 4 files in a folder. header.php, footer.php,index.php,style.css,f...

    Header.php will be header code only Footer.php will be footer code only Index.php will be body code style.css will be stylsheet and functions.php will be empty with some little function basic search. you will find easily. Now zip the folder and upload it to themes. That's it"

    https://www.reddit.com/r/Wordpre…

    • from the comments:
      "This is brutal." <--- accurate. don't be like me, folks. don't create a fully working site in html/php then have to import into wordpress,
      cherub
    • it's a fucking nightmare.cherub
    • maybe take a look at a wordpress developer tutorial.
      It's a bit hard to grasp all the concepts of wp, but the right way to do it is to write your own theme.
      uan
    • once you get how wp is written and acts...you wrap wp around your site and not the other way around (because that IS the nightmare).uan

View thread