Skip to:
Content
Pages
Categories
Search
Top
Bottom

Link leads to the wrong place


  • reprocessor
    Participant

    @reprocessor

    Hi all,

    I need a quick fix because I think i’ve done something wrong. I added this line to the header.php to create a new nav item:

    <li><a href="forums" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li>

    This works well except when I go to the blog and click on a post and then try to navigate to the forums.

    to test this go here:

    http://gigbuddy.org/blog/2009/03/04/testing/

    then try clicking the ‘forums’ tab on the main nav. You’ll see what I mean.

    Any help would be much appreciated.

    Cheers,

    Phil

Viewing 7 replies - 1 through 7 (of 7 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    Phil,

    you’re going to want to do something a little more codey… :)

    <li><a href="<?php echo $bp->root_domain; ?>/forums/" title="<?php _e( 'Forums', 'buddypress' );?>"><?php _e( 'Forums', 'buddypress' );?></a></li>

    I haven’t tested it, but I’m pretty confident. :)

    You could go a step further and put this into a hook function, but lets try this for now and see if does what you want. :)


    reprocessor
    Participant

    @reprocessor

    I’ll give it a go just now. Cheers John, I’ll let you know how I get on.


    reprocessor
    Participant

    @reprocessor

    That killed the nav tab – have a look at http://gigbuddy.org and you’ll see what I mean


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Whooops! (Edited original post to avoid confusion also.)

    <li><a href="<?php echo $bp->root_domain; ?>/forums/" title="<?php _e( 'Forums', 'buddypress' );?>"><?php _e( 'Forums', 'buddypress' );?></a></li>


    reprocessor
    Participant

    @reprocessor

    That just shows you how lazy I am LOL – I should have checked it :P Thanks very much for your time once again John – you’re a sexy, sexy man ;)


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Hahah! If by sexy sexy you mean dedicated BuddyPress supporter, then I’m forced to agree. :)

    Thanks for greening this.


    reprocessor
    Participant

    @reprocessor

    No probs chief, I’m still not really that ‘au fait’ with php. Just as well there’s a great community here with people like you, Nicola Greco and Burt Adsit always willing to lend a hand. Thanks once again :)

    Phil

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Link leads to the wrong place’ is closed to new replies.
Skip to toolbar