• Resolved abigsmurf

    (@abigsmurf)


    I’m currently trying to implement WordPress into the site http://www.ukanime.com which uses a php include based template for navigation. Due to the way I’ve created my site in the past, I really need to keep the existing nav bars (which I intend to supplement with wordpress features).

    Unfortunately I’ve hit a snag in that after the WordPress code is displayed, it ceases to display anymore code. This includes my vital Right navigation bar unfortunately. You can see what it looks like here : http://www.ukanime.com/template2.php?page=bindex.php . I’m not sure if it’s a CSS issue (I’m not that experienced with it as I made a PHP based template to avoid the need to use it) but does anyone have any idea why my code’s being truncated?

Viewing 8 replies - 1 through 8 (of 8 total)
  • ….

    Make you site a wordpress template, job done.

    Thread Starter abigsmurf

    (@abigsmurf)

    I’m kinda trying to do that. Implementing wordpress into my existing template. I’ve something like 375 content pages, some stored in a database, some in html (as well as some custom php elements). I do intend to integrate everything together but that’s months of work for me, a portion of which may involve downtime for the site.

    At the moment I want to get the basic functionality integrated with my existing template and gradually implement the site’s content a bit at a time.

    I think Phunky meant that you should convert your design into a WP theme. I’m not sure that would work for you.

    How are you including the WordPress content? Also, does anything on your right nav bar perform any db queries of its own?

    Thread Starter abigsmurf

    (@abigsmurf)

    The template is basically a layout consisting of a selection of tables. The left navbar, wordpress and the right bar are in a table of their own with 3 columns. The left bar is hard coded into the template and wordpress and the right bar are both php includes. The right bar is a html with no database or php calls.

    The thing is it doesn’t even have display the code for the final div where the navbar would go. The code just stops once index.php from the theme has loaded.

    The code just stops once index.php from the theme has loaded.

    So you’re including index.php? You’d be better off including wp-blog-header.php and then incorporating the various WP components you need, to avoid the theme override that is occuring. See this Codex doc for more:

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress

    Thread Starter abigsmurf

    (@abigsmurf)

    nope even creating a static front page like that stops the right bar from displaying it seems. It gets the same issue. Any idea why the code seems to be stopping anything else from being displayed once it finishes? It’s definately not a CSS issue as I’ve tried it with disabled themes.

    *edit*

    doing some work it seems to be the wordpress index that’s causing the issues. I’ll see if I can sort it out

    Do not include the whole WP index file into your site – it creates errors (like having two <head> sections, two <body> sections etc.)
    You may want to take a look at this tutorial to get an idea how to do it:
    http://www.transycan.net/blogtest/2005/07/05/integrate/

    You could also simply use The_Loop in your site.

    Thread Starter abigsmurf

    (@abigsmurf)

    Thanks, that link was really handy. It’s all finished and (seems to be) bug free now.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Implementing WordPress into a template’ is closed to new replies.