Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Menu under Header Image on Specific Page


  #1  
Old Feb 27, 2011, 04:06 AM
Cathy131
 
30 posts · Nov 2009
Melbourne, Australia
Hi there
Well its taken me a day, but I've finally figured out how to create a page that has a different header image and number of sidebars than my homepage.

I have created the Pages listed below (still in Draft) and need to add a menu under the header image of this page only. I do not want these pages to appear in the menu on the left of the page or on any other page in the website.

http://untietheknots.com.au/sewing-guidelines
http://untietheknots.com.au/sewing-links
http://untietheknots.com.au/student-work

So I followed the instructions on here.
I went to ATO > Header Area > Style & edit HEADER AREA > Configure Header Area and changed it to:

%logo <?php
if(function_exists('show_media_header')){
show_media_header();
}
?>
<?php bfa_widget_area('name=dress_submenu'); ?>

The code I created in the dress_submenu widget reads:
<?php

echo*"<div*id=\"menu2\">";
echo*"<ul*class=\"clearfix*rMenu-hor*rMenu\"*id=\"rmenu\">";

$curr_page_id*=*get_query_var('page_id');

switch*($curr_page_id)*{
****case*1199:
********echo*"
<li*class=\"cat-item*cat-item-1\"><a*href=\"http://untietheknots.com.au/sewing-guidelines\">Submenu*Item1*for*Page*1199</a></li>
<li*class=\"cat-item*cat-item-2\"><a*href=\"http://untietheknots.com.au/sewing-links\">Submenu*Item2*for*Page*1199</a></li>
<li*class=\"cat-item*cat-item-3\"><a*href=\"http://untietheknots.com.au/student-work\">Submenu*Item3*for*Page*1199</a></li>
********";
********break;
default:
*******echo*"&nbsp;*";
}
echo*"</ul></div>";
?>

This appears on every page:

DRESSMAKING SUBMENU (greyed out - doesn't go anywhere)


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/cbc/public_html/untietheknots.com.au/wp-content/plugins/php-code-widget/execphp.php(44) : eval()'d code on line 3

So I have deleted <?php bfa_widget_area('name=dress_submenu'); ?> from the ATO Header Config Page for now. Any ideas on where I've gone wrong or if there is a better/easier way of doing this?

Once I've figured out my menu issue, what do I do, so that I can add 'blog posts' that appear only on this page and students/visitors can add comments to the posts?

Sorry for the long post - hope it makes sense
Cheers
Cathy131
__________________
WordPress 3.5.1 Atahualpa 3.7.11
http://www.untietheknots.com.au/
  #2  
Old Feb 27, 2011, 04:16 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are all those '*' there to represent spaces, or did you actually put them in the code? Ie do you have
HTML Code:
<?php

echo*"<div*id=\"menu2\">";
echo*"<ul*class=\"clearfix*rMenu-hor*rMenu\"*id=\"rmenu\">";

$curr_page_id*=*get_query_var('page_id');

switch*($curr_page_id)*{
****case*1199:
********echo*"
<li*class=\"cat-item*cat-item-1\"><a*href=\"http://untietheknots.com.au/sewing-guidelines\">Submenu*Item1*for*Page*1199</a></li>
<li*class=\"cat-item*cat-item-2\"><a*href=\"http://untietheknots.com.au/sewing-links\">Submenu*Item2*for*Page*1199</a></li>
<li*class=\"cat-item*cat-item-3\"><a*href=\"http://untietheknots.com.au/student-work\">Submenu*Item3*for*Page*1199</a></li>
********";
********break;
default:
*******echo*"&nbsp;*";
}
echo*"</ul></div>";
?>
or
HTML Code:
<?php

echo "<div id=\"menu2\">";
echo "<ul class=\"clearfix rMenu-hor rMenu\" id=\"rmenu\">";

$curr_page_id = get_query_var('page_id');

switch ($curr_page_id) {
    case 1199:
        echo "
<li class=\"cat-item cat-item-1\"><a href=\"http://untietheknots.com.au/sewing-guidelines\">Submenu Item1 for Page 1199</a></li>
<li class=\"cat-item cat-item-2\"><a href=\"http://untietheknots.com.au/sewing-links\">Submenu Item2 for Page 1199</a></li>
<li class=\"cat-item cat-item-3\"><a href=\"http://untietheknots.com.au/student-work\">Submenu Item3 for Page 1199</a></li>
        ";
        break;
default:
       echo "&nbsp; ";
}
echo "</ul></div>";
?>
because the first will not work
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 27, 2011, 05:25 AM
Cathy131
 
30 posts · Nov 2009
Melbourne, Australia
Hey Juggledad

the * are spaces. Don't know why 'the forum' put them in there......

Double checked the widget itself - not a * to be seen.
__________________
WordPress 3.5.1 Atahualpa 3.7.11
http://www.untietheknots.com.au/
  #4  
Old Feb 28, 2011, 04:22 AM
Cathy131
 
30 posts · Nov 2009
Melbourne, Australia
I got the posts to appear on this page with this plugin.

The posts in Dressmaking category are excluded from my normal blog page with Juggledad's instructions (note the code goes in THE LOOP not above or below it!)

Hoping someone can help with adding a menu under the header image of this page.
__________________
WordPress 3.5.1 Atahualpa 3.7.11
http://www.untietheknots.com.au/
  #5  
Old Feb 28, 2011, 07:27 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I see a menu in the left sidebar of the 'Dressmaking Classes' do you want another menu somewhere?

(p.s. I changed the wording in that other post)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Mar 5, 2011, 04:07 AM
Cathy131
 
30 posts · Nov 2009
Melbourne, Australia
Sorry for the delay in responding.

Yes I would prefer Sewing Guidelines, Sewing Links and Student Work to appear as a menu (or clickable links) under the header image on 4 pages - Dressmaking Classes and those mentioned above. They should not appear on the home page, or any other page.

Once I've mastered that, I'll remove them from the left sidebar menu.

Thanks heaps
Cathy
__________________
WordPress 3.5.1 Atahualpa 3.7.11
http://www.untietheknots.com.au/

Bookmarks

Tags
horizontal sub menu, second menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] post-specific header image w/ css insert (page-specific ones work, but not o viewdesigninc Header configuration & styling 10 Oct 1, 2012 03:43 PM
How to put specific SWF files on specific pages as header images? kippiper Header configuration & styling 2 Dec 10, 2009 08:23 AM
[SOLVED] How to show 1 specific header image on a static page and on Cat. pages Sakshin Header configuration & styling 24 Oct 3, 2009 04:36 PM
[SOLVED] 3.4.2 Specific header image per category Seb the frog Header configuration & styling 3 Aug 8, 2009 03:07 AM
Desperately looking for help with HIDING header image on one specific page Cristiacus Header configuration & styling 0 Jun 2, 2009 03:50 PM


All times are GMT -6. The time now is 01:09 PM.


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