Skip to:
Content
Pages
Categories
Search
Top
Bottom

difference between get_header and get_header buddypress?

  • @jaja-1

    Member

    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)
  • @rogercoathup

    Participant

    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.

    @kamalrphp

    Participant

    @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.?

    @modemlooper

    Moderator

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

    @kamalrphp

    Participant

    @modemlooper: yes I got this.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘difference between get_header and get_header buddypress?’ is closed to new replies.
Skip to toolbar