Hi Mark,
I'm sure you will be happy to hear I have made a small bit of progress!
Take a look at the site -
http://www.naomhmearnog.ie/index.php. If you click or hover on the teams section you will see it is acting like any other link in the navigation. However it appears the navigation is not picking up on the sub menu parts of the stylesheet. Hopefully it maybe a case of changing/adding some code to enable it?
I have attached my code at the bottom for both the stylesheet, template and the .tpl file.
Few points of interest from testing the stylesheet
1. When I take away the space from:
#primary-nav li. menuparent,
#primary-nav li. menuparenth
The look and feel reverts back to the default sub menu image been displayed the whole time (
http://www.naomhmearnog.ie/uploads/images/sub_menu2.gif)
2. Adding a space to
#primary-nav li. menuactiveparent,
#primary-nav li. menuactiveparenth {
Makes no difference
3. I added
#primary-nav li.menuactiveparent ul,
#primary-nav li.menuactiveparenth ul
But it doesn't seem to make a difference
Here is the code anyway
------------------------------
Stylesheet
------------------------------
/* ++++++++++++++start of left nav++++++++++++++*/
#primary-nav li,
#primary-nav li.menuparent,
#primary-nav li.menuparenth {
background-color: #000000; /* Default Bkg colour for the link blocks*/
min-height:1em; /* Fixes IE7 bug*/
background-image: url(uploads/images/static_bkg.gif); /* Main Default Bkg Image */
background-position: left;
background-repeat: no-repeat;
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being
displayed) */
#primary-nav li.menuactive,
#primary-nav li.menuactiveh {
background-color: #F6B30A; /* changed the active colour from (C7C7C7) F6B30A to 480FED*/
background-image: url(uploads/images/active_bkg2.gif); /* Main Default Active Bkg Image */
background-position: left;
background-repeat: no-repeat;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav li. menuparent,
#primary-nav li. menuparenth
{
background-image: url(uploads/images/sub_menu2.gif); /* Main Default Sub Menu Bkg Image */
background-position: left;
background-repeat: no-repeat;
}
/* Fix here
#primary-nav li. menuactiveparent,
#primary-nav li. menuactiveparenth {
background-color: #F6B30A; /* changed the active colour from C7C7C7 to F6B30A*/
background-image: url(uploads/images/sub_menu.gif); /* Main Active Sub Menu Bkg Image */
background-position: left;
background-repeat: no-repeat;
}
#primary-nav li.menuactiveparent ul,
#primary-nav li.menuactiveparenth ul {
background-color: #C7C7C7; /* changed the active colour from C7C7C7 to F6B30A*/
background-position: left;
background-repeat: no-repeat;
}
#primary-nav li.menuparent:hover,
#primary-nav li.menuparenth{ /*I removed the :hover from the code*/
background-image: url(uploads/images/sub_menu1.gif); /* Main Default Hover Sub Menu Bkg Image */
background-position: left;
background-repeat: no-repeat;
}
/* Styling the apperance of all the menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
background-color: #645B5B; /* changed the hover link colour from E7AB0B to 645B5B*/
background-image: url(uploads/images/hover_bkg.gif); /* Main Hover Bkg Image */
background-position: left;
background-repeat: no-repeat;
}
/* ++++++++++++++End of left nav++++++++++++++ */
------------------------------
Template file
------------------------------
Navigation
{menu template='cssmenu.tpl'} /* I tried changing this to cssmenu1.tpl and got an error message on the left nav*/
-------------------------------
cssmenu1.tpl file
-------------------------------
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
current == true}
haschildren == true}
<a class="menuparent"
----------------------------------------------------------------------------------------------------------------------------
At this stage I may have to just settle for this compromise look wise as it is taking up alot of mine and more importantly your time. What do you reckon?
Thanks
Aidan