PDA

View Full Version : Help inserting images under nav bar


AlexisMedia
12-18-2010, 04:11 AM
I posted in the wrong thread but it doesn't seem to be getting moved so I'll put the link here:

https://vborg.vbsupport.ru/showthread.php?t=255451

Basically I used the additional.css file and created a test div named #test


I want to insert this right between these two div's here:




</div><!-- closing div for above_body -->

<div class="body_wrapper">

Where would I go to do that from this point to be able to call my divs via html? I don't want to insert it into my "above-body" or "body-wrapper" div. Rather, insert a new div between the two.

Sorry for a double post but I really need to get going with this and I'm worried that it's not getting seen in the vB3 forum as it's a vB4 question. I've read through the help files up and down but it really doesn't make any sense which part of the help menu to utilize if you aren't familiar with the vB process.

Thanks!

TheLastSuperman
12-18-2010, 05:04 AM
Edit the template "navbar" and find the snippet:

<div class="body_wrapper">'

You'll see it just as you posted then paste your div w/ css id or class included above it.

To get there go to:

AdminCP > Styles & Templates > Style Manager > *Drop down to "Edit Templates" in the drop-down menu beside the style name, now look for the "navbar" template it's in the template family "Navigation / Breadcrumb Templates ?"

That's the template you need to edit ;).

AlexisMedia
12-18-2010, 08:20 PM
Oh, ok cool. Sorry if it was kinda obvious but somehow I just wasn't getting it.

If I edit my templates in this way then what happens at typical updates and/or at the future vB5? Will I have to redo these each time? I understand that the additional.css file will remain untouched but I'm not sure about the templates themselves?

If I wanted to remove the nav-bar all together could I just delete all the nav-bar code within that nav template and that not effect anything in the future as well?

Thanks! Just wanting to be sure I understand this before making too many edits and regretting it later...

TheLastSuperman
12-18-2010, 10:06 PM
Oh, ok cool. Sorry if it was kinda obvious but somehow I just wasn't getting it.

If I edit my templates in this way then what happens at typical updates and/or at the future vB5? Will I have to redo these each time? I understand that the additional.css file will remain untouched but I'm not sure about the templates themselves?

If I wanted to remove the nav-bar all together could I just delete all the nav-bar code within that nav template and that not effect anything in the future as well?

Thanks! Just wanting to be sure I understand this before making too many edits and regretting it later...

Your correct in assuming the regular templates may be overwritten or not merge correctly so yes, it's well advised you make a changelog as you go this way when you do an update if anything fails you can simply create a new default style and re-customize from scratch... that's not always required but once or twice I have been required to redo a style from scratch as comparing the templates via the options and correcting would have been more time consuming then simply redoing the entire style and I was very happy that I had the changelog for that forum ;).

Remove it completely? Well you can just be sure any mods that do auto template via hooks are not requiring a hook in the navbar otherwise it won't work or worse could produce an error although not working is usually the thing you see when a hook is missing that it requires etc.