Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Add Page Menu to Dump Template (http://forum.bytesforall.com/showthread.php?t=19034)

pvelte Dec 4, 2012 10:40 AM

[SOLVED] Add Page Menu to Dump Template
 
Over the past several months, I've tried to figure out how to insert the horizontal page menu into a custom HTML page that is configured using the dump template code. The page works great but I cannot get the menu inserted. I've been able to do this with other themes but not with Atahualpa.

Now, I have a client who really needs this on her site! Viewing the page source of a default template page, I've found and inserted <ul id="rmenu2" class="clearfix rMenu-hor rMenu"> in the HTML. I strongly suspect I need to add code to the page but, cannot determine what needs to be added to enable the Page Menu.

The dump template file starts with:
<?php /* Template Name: Dump2 template */ ?>

<?php

// Do not delete these lines ?> --

And I insert my HMTL (beginning with the open HTML tag) after that. What code needs to be added to the page to allow the menu bar to function (and appear where I want it).

Thanks!

juggledad Dec 4, 2012 10:47 AM

The 'dump' template was just for testing and was left in the theme folder by accident. Ii no longer in the theme. If you want to build a template, you should start with index.php.

pvelte Dec 4, 2012 12:38 PM

Thanks for the quick response.

Is there a tutorial that might explain how to insert HTML into a new template using the index.php file as a starting point? That dump template was soooo easy to work with (other than not allowing me to insert the menu).

I've been able to add this line to give the template a new name but when I try to insert HTML code it fails to load:

<?php /* Template Name: Dump Neew template */ ?>

Not feeling very successful -- and am willing to learn if there is another post or tutorial that would help.

Thanks.

juggledad Dec 4, 2012 12:57 PM

Why not just put the HTML in a page? Or maybe I should ask: what are you trying to do?

pvelte Dec 4, 2012 03:13 PM

An HTML page would work except I need to have the page menu bar on the page so it can show new pages that my client will be adding over time. This page also has a different header graphic than the interior pages and the plugin I use for dynamic headers doesn't work with WP 3.4.2.

I could add a javascript menu system but her page updates won't show on the menu bar...

Any hope of having a custom template for one page with HTML for everything except the menu bar?

Thanks so much.

juggledad Dec 4, 2012 05:14 PM

here is what you do
1) create a page and add your html to it
2) go to ato->Style & edit HEADER AREA->Configure Header Area and add just after the %image
HTML Code:

<div id="my-header"><img...your image here...></div>
3) in CSS inserts add (assuming your page id is 25)
HTML Code:

#my-header {display: none;}
body.page-id-25 #my-header {display: block;}
body.page-id-25 #imagecontainer {display: none;}

4) if you don't want the sidebars to display use the 'XXXXXXX sidebar: Don't display on Pages:' options to supress the sidebars

Now Atahualpa will handle the menu
the image will only show on that page
the sidebars will/will not display based on your choice.

pvelte Dec 4, 2012 05:50 PM

Great solution! I've implemented your suggestions and it works exactly as I needed. You ROCK!


All times are GMT -6. The time now is 04:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.