• I have installed WordPress on my localhost yesterday, how do I create a website on it? I have an html and css files for which I would need WordPress thumbnails and gallery modules to align images and use thumbnails to view them. I was thinking that in order for the modules to work they also have to be installed in WordPress, then should I upload my webpage to wordpress, download the required modules and work on my webpage and its content on my localhost? Or should I just continue with my html and css, but then, I need modules to see the changes on my webpage. What should I do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Lyvdi, I do not understand your question…

    If you installed WordPress on localhost, you should be able to login in backend, place the modules and yout images…

    How far are you with setting up your wordpress homepage? Did you allready login to backend?

    Regards
    Samuel

    Lyvdi, i dont understand your question either, but this will help you to get to know wordpress.

    Thread Starter Lyvdi

    (@lyvdi)

    Sorry you couldn’t understand my question. Well I have html and css files. If I open my html file in a browser I can navigate through my webpages that have images, paragraphs, contact form which uses jQuery plug in. How do I install them to my web host?

    Hope I explained it well.

    Just to recap:
    1) You have a WordPress site running on a local machine.
    2) You have standard HTML files with CSS and jQuery that you want to bring into WordPress

    If that’s the situation – let’s first hit the bad news.

    WordPress is not your standard website – it’s a web application. It works by storing data in a database and displaying that data through “views” (you can think of “views” as pages but it’s more complicated than that). These views are created via PHP template files that make up WordPress core and your WordPress theme. PHP is a server-side scripting language that requires a PHP parser to run through the code and then generate the appropriate HTML to display. So what this means is that you can’t really take your standard HTML, CSS and JavaScript files and just add them to WordPress and expect them to work. What you really need to do is to take the content from the HTML, and using WordPress’ tools, build out your site content inside WordPress. For your CSS, consider using a child-theme. Find a WordPress theme that gets you most of the way to the design you want, then create a child theme (just a specially formatted stylesheet) and add in your custom CSS to finish it up. For jQuery, learn how to enque your scripts in the theme’s function.php file (or in your case build a function.php file for your child theme and enque the scripts there.) Learn more about about that here: https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script

    Okay – bad news over. Lets go into some things that can help you better understand and work with WordPress.

    I really recommend running through the code of the _s theme – a starter theme for developers to use and which WordPress.com uses as the starting point for their themes. It’s very well documented code and it can help you better understand how WordPress really works under the hood.

    As far as moving your local development WordPress up to an actual server, see: https://codex.www.ads-software.com/Moving_WordPress

    Key things to look out for in a migration: make sure the database has been setup on the server (and make sure your wp-config.php file is correctly setup to use the database on the server). Make sure to get a SQL dump of your local development database to import into the server’s database. And then make sure to run through the imported data in the database and update all the URLs to accurately reflect the move to the new server.

    Anyway, sorry this was so lengthy! Hope it helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I create a website on WordPress?’ is closed to new replies.