This will be a very simple question for all of you wordpress experts. On the top part of most wp themes there is the section for pages. How do you create hyper links to sub domains. I can only figure out how to create pages via the admin -add page- but can not figured this part out. Thanks for your help in advance
Here's the header code for my insurance blog. Thanks for your help in advance <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <title> <?php if (is_home()) { echo bloginfo('name'); } elseif (is_404()) { echo '404 Not Found'; } elseif (is_category()) { echo 'Category:'; wp_title(''); } elseif (is_search()) { echo 'Search Results'; } elseif ( is_day() || is_month() || is_year() ) { echo 'Archives:'; wp_title(''); } else { echo wp_title(''); } ?> </title> <meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" /> <meta name="description" content="<?php bloginfo('description') ?>" /> <?php if(is_search()) { ?> <meta name="robots" content="noindex, nofollow" /> <?php }?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body> <div id="wrap"> <div id="header"> <div id="skip"> <img src="<?php bloginfo('template_url'); ?>/images/GR468.jpg" alt="ads" /></div> <div id="logo"><a href="<?php echo get_option('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a> </div> <div id="menu"> <ul> <li><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('title_li='); ?> </ul></div> </div>
This is rather simple Andrew. In the code you just specified, find out this line: <div id="menu"> <ul> <li><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('title_li='); ?> </ul></div> HTML: Just add the lines below in red. And replace the blue ones with the appropriate links/title <div id="menu"> <ul> <li><a href="<?php echo get_settings('home'); ?>">Home</a></li> <li><a href="http://www.thedomain.com/thelink">The Link Title</a></li> <?php wp_list_pages('title_li='); ?> </ul></div> for each new link, add another line with the appropriate link and title. And you will be good to go
yes, but i would suggest going with Jalpari as they seem to be more knowing when it comes to wordpress. plus my suggestion would be the same.
Yeah andrew, just add another <li></li> line and you can add as many links as you want. You can also arrange the line below it to manipulate whether you want the custom links to be seen before or after Cheers mate.. p/s diet-coke: That has nothing to do with Wordpress at all. Its basic HTML codes.