Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Add Page Menu to Dump Template


  #1  
Old Dec 4, 2012, 10:40 AM
pvelte
 
38 posts · Apr 2010
[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!
  #2  
Old Dec 4, 2012, 10:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
 
38 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
 
38 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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

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 05:25 AM.


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