• Okay so my brain is starting to ache a little bit so I thought I would give the forums a try.

    Basically what I have is 6 static html pages (home, about, blog, work, portfolio, contact). One of these pages as you can see is a blog and has two <divs> set aside so that one will contain the posts and the other will effectively act like a sidebar with links to the posts.

    The rest of the pages will all have the sidebar element so that you can get to the blog from any page. Hopefully this all makes sense.

    Righty so firstly where do I upload wordpress so that all pages can make use of it’s functionality?

    I believe I have to convert the static html pages to php pages to use the wordpress functionality. I hate to use the term ‘incorporate’ wordpress into my site but that is what I am effectively trying to do. Also where should these php files be placed?

    I’m waiting for that ‘Eureka’ moment because I realise the potential of wordpress and how it can enhance my site.

    Thanks for your help and time in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why not just use WordPress for all the pages? You can write “Page”(s), which will be static and “post”(s) which will be you blog. It would be easier to manage and the common layout would be easier on your visitors.
    1) I’d place wp-admin, wp-includes, index.php and all the other files in the root directory for you website.
    2) If you want blog under its own folder, I’d change the ‘Permalinks’ under ‘settings’ to ‘blog/%postname%’
    3) You could get a static homepage if you want too, that option is in ‘settings’ too and within the ‘Reading’ tab.
    4) If you still want an overview page for your blog that has all the new posts, you can create a static page called blog and make a special template for it or insert come php to make it look as though it was the front page of the blog.

    Hope this gets the ball rolling with some ideas.

    Thread Starter johnny_utah

    (@johnny_utah)

    First thanks for the reply. I do intend to use wordpress for all of the pages, I have to for the functionality I want.

    However if I have a perfectly coded site, which I do, and have two divs ready for index.php and sidebar.php there must be a way to do this?

    With regards to points 1 & 2 what is the justification for placing all the files in the root? Why not elsewhere? I’ve read about putting a blog in it’s own folder. Again why would you do that?

    With regards to 3 & 4 I do not want any static pages. All pages should at least have the ‘sidebar.php’ that will display say the permalinks for the last 10 posts. Maybe that is considered a static page.

    I think the point I’m trying to make is what is the easiest way to take my 6 html pages and .css file which work fine and incorporate word press into the equation.

    Thread Starter johnny_utah

    (@johnny_utah)

    Okay so some progress to update you all.

    I have one perfect page, looking exactly the way I want, basically a theme. It has the posts and divs in the correct places. However if I click one of the permalinks to see the full story and add comments then the theme stays in place but all of the images are missing? Current;y I have all my images stored within the theme, think this is correct or maybe it should be in root?

    So first problem is how to get the images showing.

    Now from this page I want to be able to navigate to other pages. I have a navigation menu (home, about, contact etc…) I don’t understand how if all my pages are now php pages should my navigation work. Obviously static html you would just put a . What is the equivalent for a php based site?

    Thanks again in advance for your help and time.

    Thread Starter johnny_utah

    (@johnny_utah)

    Oh code kicked in. Should read ‘Obviously static html you would just put a <a href="about.html>About</a> What is the equivalent for a php based site?

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Static HTML to PHP’ is closed to new replies.