1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help: Wordpress page hyper link

Discussion in 'Design' started by Andrewjoh2009, Jul 16, 2009.

  1. #1
    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
     
    Andrewjoh2009, Jul 16, 2009 IP
  2. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    That require manual editing of html code and css div tags.
     
    Jalpari, Jul 16, 2009 IP
  3. Andrewjoh2009

    Andrewjoh2009 Peon

    Messages:
    194
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Is it something that can easily be done?
     
    Andrewjoh2009, Jul 16, 2009 IP
  4. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    yes if u can not then post ur header code here and the html code which u need ( url+anchor text)
     
    Jalpari, Jul 16, 2009 IP
  5. Andrewjoh2009

    Andrewjoh2009 Peon

    Messages:
    194
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    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>
     
    Andrewjoh2009, Jul 16, 2009 IP
  6. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    replace this part. and write ur own url and anchor text.
     
    Jalpari, Jul 16, 2009 IP
  7. TheLimeDesign

    TheLimeDesign Well-Known Member

    Messages:
    504
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #7
    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 :)
     
    TheLimeDesign, Jul 16, 2009 IP
  8. Andrewjoh2009

    Andrewjoh2009 Peon

    Messages:
    194
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Thanks everyone for your help. this will also work if there is more than one hyper link?
     
    Andrewjoh2009, Jul 16, 2009 IP
  9. diet-coke

    diet-coke Banned

    Messages:
    50
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    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.
     
    diet-coke, Jul 16, 2009 IP
    Jalpari and Stroh like this.
  10. TheLimeDesign

    TheLimeDesign Well-Known Member

    Messages:
    504
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #10
    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.
     
    TheLimeDesign, Jul 16, 2009 IP
  11. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    yes limedesign is right but do not forget to close ul tag properly.

     
    Jalpari, Jul 17, 2009 IP