• I have a customized WordPress template that I have been banging my head against the wall about. I have it 80% complete and have hacked my way through it so far. Here is the URL: https://www.coalescemedia.com/blog. I know this is going to be a fundamental question to the correct person. Keep in mind that I am a graphic designer that happens to try and do some programming in Dreamweaver from time to time. Here is what I am trying to accomplish:

    I have a graphical navigation that I want to run down the left side of my template in the “sidebar” div just above the search blank. I have the navigation built out in a separate document named navigation.php. The images are placed in a table inside a div.

    I have been trying to add my new “navigation” div into the index.php document in the default themes folder. From what I can tell I should be able to place this piece of code ( <?php get_navigation(); ?> ) above the ( <?php get_sidebar(); ?> ) line. When I upload this to my server I get an error line at the bottom of my template page.

    I may be way off base on this one but any help would be much appreciated. Thank you in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Nope. You have to use a normal php include call (the “get_” construct is straight specific wp). So you need to use something like this instead:

    <?php include 'navigation.php' ?>

    Like this:

    <?php include('navigation.php'); ?>

    Thread Starter jayferguson

    (@jayferguson)

    Thank you for your suggestions. I have the afternoon off so I will give this a try and see what happens.

    Thread Starter jayferguson

    (@jayferguson)

    Okay. I tried the above suggestions with very little success. I did try to insert the <?php include(‘mynavigation.php’); ?> tag in the sidebar.php document just before the first ul. That did work to an extent. When I upload all the necessary files all the images in the nav are broken. I have all the images in the main site image folder (not in a sub folder) and I have checked the links to the images multiple times.

    On top of this issue I have lost the content background image. In Dreamweaver I can see a #page div and the image when I test it. When I upload it to my server it is a completely different story. Again I have checked the link and it seems to be correct when compared to the page background image that is appearing. This issue seems to happen in Dreamweaver when I add the “mynavigation” to the sidebar. I have no idea what the conflict could be.

    Also as a bonus I would love to have the whole page centered in the window.

    Are you editing the files using DW in wysiwyg mod?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘New Graphical Navigation’ is closed to new replies.