Page 1 of 1
Adding a Navbar to Joshua
Posted: Tue Aug 18, 2009 5:14 pm
by Pellaeon
Hi there...
I´m starting to post a blog, and I chose the "Joshua" Template...
I tweaked it a bit, but now I want to add a Navbar.
Anyone can explain how to do that?
I only have very basic knowledge of css and php, so I´d need idiotproof advice
Blog
Thx in advance!
Re: Adding a Navbar to Joshua
Posted: Tue Aug 18, 2009 10:37 pm
by yellowled
Pellaeon wrote:I´m starting to post a blog, and I chose the "Joshua" Template... I tweaked it a bit, but now I want to add a Navbar. Anyone can explain how to do that?
Depends a little on what you actually need.
There are two ways to do this:
A. Static navbar: You know only need a limited number or links, and they probably won't change much after an initial setup. If that's the case, you can hardcode the navbar in your template. It needs fewer steps, but it's more of a hassle if you want to change something in the navbar.
B. Dynamic navbar: You're not sure about the number of links you're gonna need. You might start with just 3 links, but you might need more later. In this case, it might be better to add a dynamic navbar which can be configure in the theme options ("Manage Styles" in the s9y backend). The initial setup is harder here, but changing the navbar is very easy later.
What's it gonna be?
YL
Re: Adding a Navbar to Joshua
Posted: Tue Aug 18, 2009 11:10 pm
by Pellaeon
I think I´ll try the dynamic way
If it´s too hard, I can always try the easy one.
The dynamic one would be actually modyfing the Template itself, or?
Thx for the quick answer!
Re: Adding a Navbar to Joshua
Posted: Wed Aug 19, 2009 12:47 am
by Don Chambers
Either way, you are modifying the template. At minimum, you will be modifying the files index.tpl and style.css. If you go the dynamic route, you will also be editing (or likely CREATING) a file named config.inc.php in the template folder. If you REALLY want to go the dynamic route, take a look at the code in the bulletproof template.
I personally think you should NOT bother with the dynamic route... the code for a navbar is usually something like this:
Code: Select all
<ul>
<li><a href="URL_HERE">LINK 1</a></li>
<li><a href="URL_HERE">LINK 2</a></li>
</ul>
And then you will need some css to control the appearance of the navbar.
There are thousands of tutorials on this. I suggest starting with
this one.
Re: Adding a Navbar to Joshua
Posted: Wed Aug 19, 2009 4:50 pm
by Pellaeon
Basically a list with CSS-enhanced optics.
I thought it would be more complicated though

I´ll try it later on.