Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Plugin:BBPress] How to add to header.php to create link back to WP

  • Dear all

    It seems frustrating to find what I thought would be an easy enough to find topic. Maybe I’m searching wrong but here goes.

    After a lot of hours I finally managed to integrate WP and bbPress. I managed to create a link to my bbPress. The final step before i take a break is to create a link back to WP in my bbPress.

    The closest I could find to clear cut directions was here:

    http://bbpress.org/forums/topic/link-header-image-to-wordpress

    I followed the instructions and changed

    <h1>”><?php bb_option(‘name’); ?></h1>

    to

    <a href="http://www.my website.com” "><Back to my website</a>

    and when I get to the forum site there is nothing. No link back to my website.

    (I know it looks weird to have com” “> but somehow without the second ” my bbpress log in, search box, etc gets crammed into the right side of the header)

    Could anyone explain exactly how and where to change this line? Is there anything else I must change? Maybe…

    … it’s because I should omit the “www”?

    … I need to have the “/home” for my website?

    For reference, here’s how my original header.php looks like

    <?php

    $_head_profile_attr = ”;

    if ( bb_is_profile() ) {

    global $self;

    if ( !$self ) {

    $_head_profile_attr = ‘ profile=”http://www.w3.org/2006/03/hcard”&#8216;;

    }

    }

    ?>

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml”&lt;?php bb_language_attributes( ‘1.1’ ); ?>>

    <head<?php echo $_head_profile_attr; ?>>

    <meta http-equiv=”X-UA-Compatible” content=”IE=8″ />

    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />

    <title><?php bb_title() ?></title>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>” type=”text/css” />

    <?php if ( ‘rtl’ == bb_get_option( ‘text_direction’ ) ) : ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri( ‘rtl’ ); ?>” type=”text/css” />

    <?php endif; ?>

    <?php bb_feed_head(); ?>

    <?php bb_head(); ?>

    </head>

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”header” role=”banner”>

    <h1>”><?php bb_option(‘name’); ?></h1>

    <?php if ( bb_get_option(‘description’) ) : ?><p class=”description”><?php bb_option(‘description’); ?></p><?php endif; ?>

    <?php if ( !in_array( bb_get_location(), array( ‘login-page’, ‘register-page’ ) ) ) login_form(); ?>

    <div class=”search”>

    <?php search_form(); ?>

    </div>

    </div>

    <div id=”main”>

    <?php if ( bb_is_profile() ) profile_menu(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Good day all,

    Is there someone who could help me with this query? Or perhaps I’m posting to the wrong area?

    Good day all,

    Is there someone who could help me with this query? Or perhaps I’m posting to the wrong area?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar