• Resolved musiconplay

    (@musiconplay)


    Hi all,

    Is it possible to make a navigation link send you to another website instead of opening a wordpress page…

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • <a href="http://link-to-other-site" title="Title of other site">Some text </a>
    Thread Starter musiconplay

    (@musiconplay)

    where should i put that?

    Where do you want it to go?

    Thread Starter musiconplay

    (@musiconplay)

    on the navigation…

    thanks

    “Navigation.” Seems a bit vague.

    Where’s your navigation? What’s the code you’re already using?

    Thread Starter musiconplay

    (@musiconplay)

    Its on top under the banner..

    CSS
    code:

    /* navigation */
    .navigation {
    	border: 1px solid #a42222;
    	border-color: #a42222 #CFDEE7;
    	background:#b62424;
    	height: 41px
    }
    .navigation a {
    	background: #a42222;
    	border-right: 1px solid #AFBEC7;
    	color: #ffffff;
    	display: block;
    	float: left;
    	text-decoration: none;
    	font: bold 1em sans-serif #ffffff;
            font-weight: bold;
    	line-height: 41px;
    	padding: 0 20px;
    }
    .navigation a:hover {background-position: bottom; color: #000000;}
    .navigation ul {display: inline;}
    .navigation li {float: left;}

    header.php

    <div class="navigation">
    		<ul>
    			<li><a href="<?php bloginfo('url'); ?>/">Home</a></li>
    			<?php wp_list_pages('title_li=&depth=1');?>
    		</ul>
    
    		<div class="clearer"><span></span></div>
    	</div>

    This example shows a link both after the home link and after the list of pages.

    <ul>
    	<li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    	<li><a href="http://link-to-some-site" title="Title of site">Example</a></li>
    	<?php wp_list_pages('title_li=&depth=1');?>
    	<li><a href="http://link-to-some-site" title="Title of site">Example</a></li>
    </ul>
    Thread Starter musiconplay

    (@musiconplay)

    Thanks man it worked 😀

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to make a link on navigation send you to another website?’ is closed to new replies.