Skip to:
Content
Pages
Categories
Search
Top
Bottom

buddypress child themes conditional template tags?

  • Avatar of graphicalforce
    graphicalforce
    Member

    @graphicalforce

    Hello, I’m using a child theme and I am trying to edit the header to display a snippet of code which will show ads. It seems to work on all pages except the Members, Groups, and Forums. I’m aware of the Conditional Template Tags http://codex.buddypress.org/developer-docs/conditional-template-tags/ but I still am having trouble with it.

    I’m using this for the home but I’m not sure what to use for the others.

    `<?php if ( is_page( 'home' ) ) {
    if(function_exists(‘wp_template_ad’)) { wp_template_ad(’1′); }
    } ?>`

    Any suggestions?

    Thanks in advance!

You must be logged in to reply to this topic.