• I’ve experimented with what is essentially a 3-column layout here, but I don’t like it. I think I’ll put a horizontal menu directly under the header image instead.

    I’d like to move everything from the sidebar, giving me something like:

    | Blog Home | Admin | Register/Log In | Archives | Blogroll

    but, because some of those are PHP calls not direct links, they end up being on separate lines.

    Also, I can’t figure out what the actual “Archive” link needs to be. Should it simply be href=”/archive.php” or a php command.

    This is my first time creating a template, although I have a lot of XHTML/CSS experience. Your help is much appreciated.

    Joshua

    P.S. Should I create separate links in the top menu for archives-monthly and archives-categories?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It doesn’t really matter if they are php calls or not because it can be controlled by your css.
    Something like the following in your html can be structured on a horizontal navigation bar by using the CSS below.

    The HTML:

    <div class="topmenu">
    <ul>
    <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('depth=1&title_li='); ?>
    <li><a href="<?php bloginfo('url'); ?>/wp-admin">Admin</a></li>
    <li><a href="http://linktowherever.com">LINK</a></li>
    </ul>
    	</div>

    The CSS: [change to suit your site]

    #header .topmenu{
    	float:left;
    	width: 780px;}
    #header .topmenu ul{
    	list-style: none;
    	margin: 0;
    	padding: 0px 10px 10px 0;
    	border-bottom: 1px solid #d4d496;
    	font-family: Verdana, Arial;
    	font-size: 12px;
    	font-weight: bold;}
    #header .topmenu ul li{
    	padding: 0 0 0 20px;
    	display: inline;}
    Thread Starter cjoshuav

    (@cjoshuav)

    James,

    Thanks very much. I must have failed the “How to play with lists” class 🙂

    What code do I need for a link to the archives and to the search page?

    Thanks much.

    Joshua

    Assuming you have created those pages already, using the following will provide a link without the need to type in the site url [handy if you ever decide to change domains].

    Just change the /name to suit whatever you have as your slug.

    <a href="<?php bloginfo('url'); ?>/archives">Archives</a>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Direct Link to Archives/Categories’ is closed to new replies.