Skip to:
Content
Pages
Categories
Search
Top
Bottom

Making Member Theme Header Match Main Theme


  • mkgold
    Participant

    @mattkg

    Hi,

    I’d like the Profile page in the member theme to have the same header and navigation as the rest of my main WPMu navigation (where I don’t use the BP theme). I’m trying to edit header.php in member-themes/buddypress-theme to make this happen, but I’m running into problems. Does anyone have suggestions?

    Thanks in advance for your help.

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

  • Burt Adsit
    Participant

    @burtadsit

    What kind of problems are you running into?


    mkgold
    Participant

    @mattkg

    Basically, I think I’m having problems with paths — the buddypress member page isn’t accessing the css/image files for the main theme. For some reason, I’m having trouble getting my head around this.

    Here is the actual error that I’m seeing:

    Warning: include(C:xampplitehtdocs/wp-content/member-themes/buddypress-member/options.php) [function.include]: failed to open stream: No such file or directory in C:xampplitehtdocswp-contentmember-themesbuddypress-memberheader.php on line 53

    Warning: include() [function.include]: Failed opening 'C:xampplitehtdocs/wp-content/member-themes/buddypress-member/options.php' for inclusion (include_path='.;C:xampplitephppear') in C:xampplitehtdocswp-contentmember-themesbuddypress-memberheader.php on line 53

    And here is a screenshot

    I want the header to match the header on this


    Simon
    Participant

    @conceptfusion

    WordPress detects the currently enabled theme’s root and css directories via the bloginfo(‘template_directory’) and bloginfo(‘stylesheet_directory’) functions.

    To call the css and images from the home theme in a member theme template you would have to hard code the path references as “/wp-content/themes/buddypress-home/styles.css”.

    Personally, as hard coding is generally a bad idea, I would suggest simply copying the elements you wish to use from the home theme directory to the member theme directory and reference them the usual way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Making Member Theme Header Match Main Theme’ is closed to new replies.
Skip to toolbar