Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress title shows link

  • @wordbuddypress

    Participant

    Since the BuddyPress update (1.7.2) the title of BuddyPress pages show the link of the page.
    For Example the User profile doesn’t show “username” instead it shows “username.
    Screenshot of a title:

Viewing 8 replies - 1 through 8 (of 8 total)
  • @mercime

    Participant

    @wordbuddypress from what BP version did you upgrade? What theme are you using?

    RE: screenshot of a title
    That is the “Create a Group” button that shows up beside the page title of the Groups Directory page, not exactly about the username you mentioned earlier. Could you clarify what you need to address in your post above?

    @wordbuddypress

    Participant

    It shows up in both in the Profile page and the create group page, there is the title with the link and then sometime the title without the link. I am using my own theme, I guess thats also the reason for this problem. What could I change in my theme to remove this? Or which file do I have to edit?

    @mercime

    Participant

    It shows up in both in the Profile page and the create group page, there is the title with the link and then sometime the title without the link.


    @wordbuddypress
    You’re correct in discerning that the Create A Group button is not supposed to show in your Profile pages or anywhere else except the Group Directory page. Change to Twenty Twelve theme and check if issue is resolved. If it is, then something in your coding of your theme’s page.php is awry. You might want to check out the page.php file of Twenty Twelve to help you find some resolution.

    @wordbuddypress

    Participant

    @mercime Thank you for the hint. The twenty twelve theme displays it correctly, I will look at my them more closely. If I find the mistake I will post it in case someone else has this problem too.

    @wordbuddypress

    Participant

    The error is in this script:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
             <h2 id="page_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
             <p id="author"><?php the_author(); ?></p>
             <div class="content">
                <?php the_content(); ?>
             </div>
          <?php endwhile; endif; ?>

    Because the title of the profile page (and create group page) is the whole link: <a href="url.com/profile/...">Settings</a>
    Maybe someone could tell me what I could change in this title script.

    @mercime

    Participant

    @wordbuddypress there’s nothing obviously wrong with that code. What theme are you using?

    @wordbuddypress

    Participant

    @mercime I made my own theme. I also tried using the page.php from the twentytwelve theme but that didn’t work either even though if I activate the twentytwelve theme everything is fine.

    @wordbuddypress

    Participant

    I combined my theme with the twenty twelve theme and found out that the error is in the functions.php file. It was because I added the snippet “remove private from post title” I fount on CSS tricks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘BuddyPress title shows link’ is closed to new replies.
Skip to toolbar