Skip to:
Content
Pages
Categories
Search
Top
Bottom

check if front.php


  • natizuba
    Participant

    @natizuba

    Hi! I’m using front.php (current version of bp/wp) and would like to check if a page is the bp front page.

    The function is_user_profile or my_profile returns all profile pages and not just ‘home’.

    Any help would be greatly appreciated.

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

  • shanebp
    Moderator

    @shanebp

    What do you mean by ‘bp front page’ ?
    The home page of your site ?
    The landing page of any profile ?
    Share an url fragment as part of your reply.


    natizuba
    Participant

    @natizuba

    Thanks for your response. I mean the landing page of any profile (…/members/me) that shows the home widgets or front.php content


    shanebp
    Moderator

    @shanebp

    I’m not very familiar with Nouveau.
    I think you’re using a custom ‘front.php’ template ?
    Perhaps you could add a hook to that template and write a function to call whenever that template loads. Not very slick, but easy and flexible.


    natizuba
    Participant

    @natizuba

    Hi! I figured it out…. bp_is_current_component (‘front’))

    Thanks! I think this topic can be closed now.

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