JS & Code in Wordpress

Out of context: Reply #14

  • Started 5 years ago
  • Last post 4 years ago
  • 21 Responses
  • cherub0

    mg33 said:
    "I can do with WP, esp customizing themes"

    Oh? well I may need your advice real soon because I'm struggling.

    First things first. For now my entire site is almost entirely single page except 1 simple login landing page. Do I understand correctly that, I need a theme builder, not a page builder right? Because any page you make by default will be placed at somesite.com/somestupidslug not somesite.com If you want to heavily customize your theme(I'm using javascript and php in conjunction with form boxes), You have to do it in appearance>customize correct? Otherwise as mentioned, it creates a slug. So this presents a problem. You either have the choice to make a custom theme with a theme builder(elementor charges $$ for this) and have it be probably insecure, or you could make a child theme, which I found to be obscure and cumbersome as a first time wordpress user. Most annoying of all it didn't even work, but I did find a javascript plugin that I haven't tried yet.

    In fact afaik the bells and whistles headline features that you could get to make migrating your html to wordpress easy as possible, are streamlined toward multipage sites, so you'll not find those amazing options in appearance>customize ...is that correct?

    Overall I'm a bit disappointed in wordpress. If you're new like me and you're trying to migrate a site INTO wordpress, it's a royal PITA : ( having to do this by hand, is basically recreating your website a 2nd time. DOUBLE THE PAIN! GRRRRRR!!!

    • Oh and somehow I managed to install my wordpress to http://somesite.com instead of: http://www.somesite.… which is what I wanted.cherub
    • .htaccess file rewrites everything to a query:
      every somestupidslug becomes: index.php ?p= somestupidslug
      sted
    • wordpress knows what slug is your index (start) page from a database entry what is customizable from the back-end.sted
    • to "heavily customize your theme" you need to create a base theme, with a function.php file. here you can adjust a lot of things about the front-end.sted
    • here you can add/remove every single include css/js file, affect core/plugin functions, interfere with the data before/after specific functionssted
    • in that new theme if you create a file what starts with the name "page_" you can change your "someslug" page to that template and play with the output.sted
    • here is a little halp:
      https://qodeinteract…
      sted
    • understand that everything is a post in the plain output with the same default properties (title, slug, excerpt, base image etc...).sted

View thread