Custom Nav Bar
-
Hey all
I am using the Dark City 1.0 Theme, adjusted to fit my needs.
I successfully coded a authors-only page, visible in the nav bar upon login.
Because I wanted that link to look different than the others, I created a new part in the CSS called “navrest” (like Navigation Restricted – the original CSS div id for the nav bar is called “nav”). Everything’s ok so far but … why the hell does it always do line breaks? This screws up my entire layout. I want the nav bar entry to be on the same line as the other public links.
Check https://hot.sinister.ch to see how it looks like for an unregistered user. See the nav bar above and image one of those entries called “Authors” but with a yellow background instead of crimson red.
Here’s the “header.php” code:<div id="nav"> <ul><li class="page_item"><a href="<?php bloginfo('url'); ?>/"><?php _e('Home'); ?></a></li> <?php if (2 <= $user_level) { ?> </div><div id="navrest"><a href="https://sinister.ch/hot/wp/?page_id=8">Authors</a></li></div><div id="nav"> <?php } ?><?php wp_list_pages('title_li=' ); ?><?php include 'stats.php'; ?> </ul></div>
(The include refers to a self-written piece of code that shows the blog statistics)
- The topic ‘Custom Nav Bar’ is closed to new replies.