Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sub blogs display name of home blog


  • red46
    Participant

    @red46

    I’m using wpmu292 with buddypress default theme. I’ve created some sub blogs for testing. One of them is using the Randy Candy theme.

    On the sub blogs, I’ve notice that all of them display the blog name as “Crafters Center” the home blog in the header, although the link is right for “wildcatmolds” which is the sub blog.

    I don’t know how to correct this so that each blog displays the name of their own blog,instead of the home blog.

    You can see this at http://judysbookshop.com/center (main) and http://judysbookshop.com/center/wildcatmolds (sub blog)

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

  • Brajesh Singh
    Participant

    @sbrajesh

    This is a problem with the theme you are using.

    Change the line in header.php saying

    <?php bp_site_name() ?>

    to

    <?php bloginfo('name');?>

    and It will work as you want it to .


    red46
    Participant

    @red46

    Got that working right. Now I have a new problem. The blog title is showing properly in the header but at the top, in the buddypress links, although it still shows the name of the home site the link is not.

    If you’ll go to http://judysbookshop.com/wildcatmolds

    You’ll see that the name WildCat Molds is properly showing and the link is the same page. That’s ok. But up at the top in the buddypress links you’ll see the name Crafters Center with the same link as the present page. I’d like it to link back to the home site.

    How can I do that?

    Thanks in advance. :)


    Brajesh Singh
    Participant

    @sbrajesh

    Gald It worked.

    I see you have buddypress Installed on main site /center and enabled on the blogs using the config.

    so, that’s why, It is showing the main site.

    anyway, you can manage that using conditional like this

    <?php
    global $current_blog;
    if($current_blog->blog_id != BP_ROOT_BLOG){
    //remove action which was registerd by buddypress
    remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo' );

    }

    //add your own action here
    add_action( 'bp_adminbar_logo', 'my_blog_logo' );

    function my_blog_logo() {
    echo '<a href="' . get_bloginfo('home') . '" id="admin-bar-logo">' . get_option('blogname') . '</a>';
    }
    ?>

    That should do it.


    red46
    Participant

    @red46

    Are you talking about wp-config?


    Brajesh Singh
    Participant

    @sbrajesh

    no, It should go to bp-config.php or the functions.php of your theme.


    red46
    Participant

    @red46

    Just making sure you understood what I’m looking for. On the sub blogs, like that wildcatmolds, I want that upper link that reads Crafters Center, to link to the home site. :)


    Brajesh Singh
    Participant

    @sbrajesh

    if I understood it right, You wanted to change the links in the topbar(which is not visible to me because it is not visible to non logged in users), and if you are talking about that topbar, then the code should work.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sub blogs display name of home blog’ is closed to new replies.
Skip to toolbar