Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] Add Page Menu to Dump Template


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 4, 2012, 10:40 AM
pvelte
 
36 posts · Apr 2010
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!
  #2  
Old Dec 4, 2012, 10:47 AM
juggledad's Avatar
juggledad
 
22,244 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 4, 2012, 12:38 PM
pvelte
 
36 posts · Apr 2010
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.
  #4  
Old Dec 4, 2012, 12:57 PM
juggledad's Avatar
juggledad
 
22,244 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Why not just put the HTML in a page? Or maybe I should ask: what are you trying to do?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 4, 2012, 03:13 PM
pvelte
 
36 posts · Apr 2010
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.
  #6  
Old Dec 4, 2012, 05:14 PM
juggledad's Avatar
juggledad
 
22,244 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Dec 4, 2012, 05:50 PM
pvelte
 
36 posts · Apr 2010
Great solution! I've implemented your suggestions and it works exactly as I needed. You ROCK!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Page Template Alters Page Order In Menu Bar RichardG Page & Category Menu Bars 1 Sep 8, 2011 04:31 AM
Graphics on all pages - how to dump the border? yossarian Page & Category Menu Bars 1 Sep 21, 2010 08:13 AM
Create a Page Template that displays Only One Page Menu Item treeplant Page & Category Menu Bars 0 Apr 20, 2010 02:41 AM


All times are GMT -6. The time now is 07:35 AM.


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