Skip to:
Content
Pages
Categories
Search
Top
Bottom

difference between get_header and get_header buddypress?

  • Inside the default BuddyPress Theme the main template files have the default WP get header code like this.


    php get_header()

    And inside the sub-folders they have a buddypress header why is that because i can’t find a different header-buddypress.php


    php get_header( 'buddypress' )
Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    It’s standard WordPress syntax for including templates (e.g. sidebars, footers, template parts).

    If you have a template called header-buddypress.php defined it will include that, if not it will fallback to header.php.

    Avatar of kamal.r.php
    kamal.r.php
    Participant

    @kamalrphp

    @roger: I have installed buddypress plugin in my wp site but there is not any header-buddypress.php file exists.

    still header is displaying. which file is used to display header.?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    if you dont have header-buddypress.php file then it falls back to the default header.php

    Avatar of kamal.r.php
    kamal.r.php
    Participant

    @kamalrphp

    @modemlooper: yes I got this.
    Thanks

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

You must be logged in to reply to this topic.