Converting HTML site to wordpress site?

7 replies
  • WEB DESIGN
  • |
I've tried uploading site that I've edited with inspect element with this tutorial
So for eg. header.php I've copied header element HTML (Edit as HTML inspect element option) and added it to heder.php. My files: Imgur: The most awesome images on the Internet
When I upload it with filezill to wordpress this is what I get: Imgur: The most awesome images on the Internet

And with "save as..." option this (what I would like to see): Imgur: The most awesome images on the Internet
There are obviously some more files that am missing how do I get them? Or is there some other way to do this thing?
#converting #html #site #wordpress
  • Profile picture of the author Nathan K
    I use Underscore as my starter theme when creating a new theme. It will contain most of the boilerplate code that you need.
    {{ DiscussionBoard.errors[10995472].message }}
  • Profile picture of the author abderrezak31
    looks like you missed some css rules, by the way to convert an HTML to wordpress that will mean some of codding work, wordpress have special hooks and plugins, let me suggest you to use a good wordpress theme with such outstanding table comparison prices !
    Signature
    {{ DiscussionBoard.errors[10998036].message }}
  • Profile picture of the author Denis Zaff
    If you upload files to WP, they should be stored in a WP folder
    {{ DiscussionBoard.errors[11000877].message }}
  • Profile picture of the author mdshahinkhan
    Maybe You can't enqueue your CSS file Properly. You must be use wp_enqueue_style(); Function on functions.php

    Add this code on your functions.php file.
    PHP Code:
    /**
     * Proper way to enqueue styles
     */
    function theme_name_scripts() {
        
    wp_enqueue_style'style-name'get_stylesheet_uri() );
    add_action'wp_enqueue_scripts''theme_name_scripts' ); 
    Another Important thing is, You must be use:

    <?php wp_head(); ?> before </head> tag, and
    <?php wp_footer(); ?> before </body> tag.
    {{ DiscussionBoard.errors[11001390].message }}
    • Profile picture of the author Dragonknigh
      Alright this is what I have now. Endings of index.php and style.css
      As you can see I've added css to style.css (9MB), added link rel in index.php
      And still I can only see basic HTML
      Only suspicious thing I've found was js in index.php
      What did I do wrong?
      Trying to solve this problem a whole month or months...
      {{ DiscussionBoard.errors[11002553].message }}

Trending Topics