Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

WP in Subdirectory, BP 1.3svn, home link incorrect (6 posts)

Started 2 years, 1 month ago by: LPH2005

  • Profile picture of LPH2005 LPH2005 said 2 years, 1 month ago:

    Summary of issue: Home link is incorrect. All other links work correctly.

    I’m slowly making progress with BP. Earlier I was not able to get BP 1.2.3 installed but was fortunate to get svn installed.

    Everything appears to work except the link to the “Home” is incorrect.

    Go to http://www.layneheiny.com and the blog postings show.
    Click on “Home” and it goes to http://www.layneheiny.com/blog

    Since WP is actually installed in /blog then maybe something isn’t correct elsewhere.

    I’ve tried to read the other postings but most are being specific to their hosting environment.

    This is the .htaccess in the root (no htaccess in subdirectory /blog)

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thank you for any suggestions.

  • Profile picture of Steve Steve said 1 year, 10 months ago:

    Is there a way to change the link in that the home menu tab points to?

  • Profile picture of Dainismichel dainismichel said 1 year, 8 months ago:

    i tried this and it breaks the install http://www.tamba2.org.uk/wordpress/site-url/

  • Profile picture of t.sjogren t.sjogren said 1 year, 8 months ago:

    Hi
    If i install WP in a subdir then the homelink is incorrect. This is because the call for the homelink is set by the tempatetag site_url() and not bloginfo(url). So to correct this edit line 48 in header.php in bp_default theme like this.
    Before:
    After:

    WARNING. This changes will be lost if you upgrade buddypress. A bettter way to do it would be to create a child theme and copy header.php to the child theme. Or even better create a function in functions.php that fixes this.

    Nav code cut-out frpn header.php

    <li class=”selected”>
    <a href=" ” title=”">

    Question: Is this a known bug?

  • Profile picture of t.sjogren t.sjogren said 1 year, 8 months ago:

    Sorry. The code was missing
    Before; <?php echo site_url() ?>
    After: <?php bloginfo(url); ?>

  • Profile picture of Sage Sage said 1 year, 3 months ago:

    @t.sjogren

    You saved the day for me! Thank you !!