• HI!

    So I am doing a custom WordPress site to convert from a full HTML / CSS site.
    I did manage to break the HTML code and the basic CSS to the wordpress theme,
    but I only got the HOME page.
    So how do I add the other HTML pages of the site plus the CSS from each page?

    As I said, the site is made in HTML/CSS and also have a full design menu that I also want to use it in the wordpress site, but do I need to create a new menu in WordPress or its possible to get the HTML menu functional inside wordpress and link to the other pages?

    I know , I am confused too ^_^

    You can have a look at the full HTML/CSS site here, maybe it helps to understand
    better what I am talking about:

    acdemo.filete.net

    Thanks for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you read this:

    http://codex.wordpress.org/Theme_Development

    Are you planning to develop basing your theme on an existing one, or are you developing your theme from scratch?

    If you are developing a theme from scratch you will need mockups for all the different types of page that you are going to use. For example:

    • Static standalone pages
    • Lists of posts
    • Single post pages

    Then you’ll need to decide how you’re going to handle the different types. For example are you going to process them using conditional tags in a file such as index.php, or are you going to create different pages for the different types.

    If you look at the two standard themes, twenty eleven and twenty ten, you will see that they use different strategies. Twenty eleven tends to have many different page types, whilst twenty ten has only a restricted number of page types and blocks of conditional statements in loop.php, for example.

    Once you know what pages you’re going to have, just create a folder for your theme in the wp-content/themes folder, add a stye.css file with the appropriate comment block, create the php files you’ve decided on and then add the code and styles.

    HTH

    PAE

    Thread Starter filete

    (@filete)

    Hello Peredur,

    Thanks again for your reply!

    Yes, I have being reading the Theme_Development.
    And I decided to develop the theme from scratch. As the site, its not going to have any Posts, just static standalone pages. but each page have some div´s for the client be able to upload pictures or videos from the WordPress back-end.

    What I did was create the theme folder, break the HTML code from the home page into the (index.php, header.php, sidebar.php & footer.php) and also put the main CSS file into a style.css.

    Then on WordPress admin , I went to SETTINGS / READING SETTINGS and choose “Front page displays: A static page” and from the Front page drop-menu selected “HOME”.

    Now check the WordPress site , I have the home appear fine with all the CSS styling, but now , where should I put the other HTML pages code and CSS styles?

    Also when I try the main menu from the HTML home page, it just does not go anywhere, do I need to create a new wordpress menu?
    because I need to have the exact style for the menu.

    Thanks again

    If everything is in index.php and there are no other templates that come before it in the Template Hierarchy, every page will be rendered according to the code in index.php. Obviously you need to call the appropriate WP functions, as you’ll have read in the docs. Take a look at the twenty ten loop.php and loop-page.php for some idea as to how it works in practice.

    The loop stuff can go in index.php, so you don’t actually need anything else. It’s not the way I’d do it, but it should work.

    Cheers

    PAE

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add more HTML and CSS files to WordPress site?’ is closed to new replies.