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.

How to customize wordpress header links?

Discussion in 'WordPress' started by CuXe, Jun 21, 2006.

  1. #1
    Hi!, I've been trying to customize some wordpress 2.03 header links but the only examples they have in the installation files refer to wordpress generated pages. For example:


    where ?>?page_id=7 is the page generated with wordpress that im supposed to link to. The problem is that i want to link to a static html page (http://www.example.com/pageiwanttolinkto.html)

    This is the example they attached with the theme files:


    Could someone give me some pointers as to how i should insert the URL of the static page i want to link to into these piece of code?:confused:
    Any hint is greatly appreciated!:) :confused:
     
    CuXe, Jun 21, 2006 IP
  2. CuXe

    CuXe Peon

    Messages:
    198
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I was browsing the threads and found a similar one asking about the header image.... unfortunately this is a different situation... any ideas?
     
    CuXe, Jun 21, 2006 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Which template are you using and what is the URL of your site?

    In all the ones I have seen the header is the same on all pages.
     
    Colbyt, Jun 21, 2006 IP
  4. CuXe

    CuXe Peon

    Messages:
    198
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    CuXe, Jun 21, 2006 IP
  5. wissam

    wissam Well-Known Member

    Messages:
    2,289
    Likes Received:
    78
    Best Answers:
    1
    Trophy Points:
    185
    #5
    What about this :
    
    <?php if ( is_home() ) { ?>
    <li><a href="<?php echo get_settings('home');?>" id="current">Home</a></li><?php } else { ?>
    <li><a href="<?php echo get_settings('home');?>">Home</a></li>
    <?php } ?>
    
    <li><a href="page7.html" id="anything">Page7</a></li>
    <li><a href="page8.html" id="anything">Page8</a></li>
    
    
    PHP:
     
    wissam, Jun 22, 2006 IP
  6. CuXe

    CuXe Peon

    Messages:
    198
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Looks like it could work....i'll give it a try and let u know..:)
     
    CuXe, Jun 22, 2006 IP
  7. CuXe

    CuXe Peon

    Messages:
    198
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nop, it doesnt seem to work :( .....any other ideas????
     
    CuXe, Jun 23, 2006 IP
  8. CuXe

    CuXe Peon

    Messages:
    198
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Mmm... Success!!!:D :D :D

    Apparently adding the following lines right beneath all that senseless code did the trick:

    but if i tried editing this code:

    i got nothing but mombo jombo

    Thanks for the hints guys!:D
     
    CuXe, Jun 23, 2006 IP