WebsiteBaker Support (2.8.x) > Templates, Menus & Design

modify a template

(1/3) > >>

cagnaluia:
Hi,

first question: is it possible modify an existing template? in particular: Beautiful_day
This is a good template but I want change two things in it.

so...

second question: I would like delete the sub-menu in the right and put the subpage directly on the top main buttons, by fade-up on these..or roll-out... I don't know the right term.

How can I do?

maverik:
http://help.WebsiteBaker.org/pages/en/advanced-docu.php

cagnaluia:
ok, thanks...

I can see the TAG
1. <div class="navigation">
and
2. <div class="sidenav">
involve my thrubles...

I can try to delete the point number <div class="sidenav"> , BUT....
HOW CAN I put the submenù in the <div class="navigation">

This... I don't understand...

maverik:
http://www.websitebakers.de/sm2/

cagnaluia:
ops...
I fear I have made a mess....

from screen.css --> allcss2 template I cut this piece of code:

--- Code: ---/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ####    Header Menu #####
    #######################

    Horizontal Drop-Down Menu based off :
    http://www.tanfa.co.uk/css/examples/menu/tutorial-h.asp
   
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  */
#navContainer {width: auto;display:block;clear:both;border-right:1px solid #000;}


/* Remove List Formattings
~~~~~~~~~~~~~~~~~~~~  */
 ul.menu, li.menu {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

/* Header menu */    
#header_menu {position: absolute; margin-left: 20px;background:#555;}
#header_menu li {line-height: normal;}
ul#header_menu  {z-index: 10; clear: both;}

#nav {
    height: 1.68em;
    background: #666;
    border-top: 0;
    border-bottom: 1px solid #000;
    padding:0;
}
#nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 81%;
    text-transform: uppercase;
    width: auto;
    /*
    (Disappearing List-Background)
    http://www.positioniseverything.net/explorer/ie-listbug.html
    */
    position: relative; /* Fix the Stupid IE6 Bug */
}
#nav ul li {float: left; color: #fff; text-align: center; font-weight: normal;}
#nav ul li a {display: block; background: #666; padding: 5px 10px; padding-bottom: 4px; border-left: 1px solid #000; border-right: 1px solid #000; color: #fff; text-decoration: none;}

/* Root Level Link Formatting */
#nav ul li a:hover, #nav li a:focus {background: #d1d2d4; border-color: #fff; color: #4b4c4d;}
#nav li a:active, #nav ul li a.active {background: #d1d2d4; border-color: #fff; color: #4b4c4d;}

/* Current page Customisations*/
#nav li.menu-current a        {background: #000; color: #fff; border-bottom: 1px solid #000;}
#nav li.menu-current a        {font-weight: bold;}

/* 2nd Child menu */
#nav .menu li ul {position: absolute; width: 12em; margin: 0; display: none; text-transform: none; border: 1px solid #000; border-top: 0; font-size: 100%;}
#nav .menu li ul li {width: 12em; text-align: left; font-weight: normal; margin: 0; padding: 0; line-height: 1.2em;}
#nav .menu li ul a {width: 11.5em; padding: .6em .1em .6em .4em; background: #4b4c4d; color: #fff; border: 0;}

/* 2nd Child link hover */
#nav .menu li ul a:hover {color: #4b4c4d; background: #666; border: 0; color:#fff;}

/* Show and hide */
#nav .menu li:hover ul, #nav .menu li a:focus ul, #nav .menu li.subMenu ul {display: block;}
#nav .menu li ul ul { display: none;}
#nav .menu li:hover ul ul, #nav .menu li.subMenu ul ul {display: none;}
#nav .menu li:hover ul, #nav .menu li li:hover ul, #nav .menu li.subMenu ul, #nav .menu li li.subMenu ul {display: block;}


/* 3rd Child Menu Appreances */
#nav .menu li ul li ul li a     { width: 11.5em; padding: .6em .1em .6em .4em; background: #c6c6c6; color: #fff; }

/* Positioning the Pop-out Drops */
#nav li {position: relative;}

#nav ul ul ul {
    position: absolute;
    top: 1px;
    left: 100%;
}




/* end menu */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */


--- End code ---


and past it in the end of beautifulday --> default.css


SO..

I modify this line in the index.html (beautiful day...):

--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, &#39;[a][menu_title]</a>&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;[a][menu_title]</a>&#39;); ?>

--- End code ---

replace with this (copy from allcss2 index.html template):

--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, &#39;\n</li>&#39;, false, false, false, &#39;<ul id=header_menu"clashh="menu">&#39;</ul>); ?>
--- End code ---


Thinking to re-use this piece in the right way.

BUT...

Opening the web site from browser I found the page..ALL BLANK ...  without anything, without source...
???!!?!?

I dind't think to destroy all the site, tweaking this "<? php show_menu2(...) ..." line.


I replaced the old index.html previously saved, without success...


sing


only the change of template from the admin panel showed me the site.

Navigation

[0] Message Index

[#] Next page

Go to full version