[buddypress-trac] [BuddyPress Trac] #5307: is_page() does not work on BP pages and class names are different

buddypress-trac noreply at wordpress.org
Thu Jan 16 11:32:49 UTC 2014

#5307: is_page() does not work on BP pages and class names are different
 Reporter:  juggledad     |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  2.0
Component:  Core          |     Version:  1.9
 Severity:  normal        |  Resolution:
 Keywords:                |

Comment (by henry.wright):

 Replying to [comment:21 hnla]:

 > I'm not sure I would be using is_page() as a conditional in this manner?
 Tending to wonder whether I would use it at all in BP terms, yes in other
 WP scenarios perhaps.

 I tend to use conditionals quite a lot throughout my themes, probably
 indicating that I need to break my templates into parts a little bit more
 than I already do. I use the Theme My Login plugin and use {{{is_page}}}
 in my theme's header.php file to identify when a user is on what I call an
 entry page (register, login, reset password etc). If the current page is
 an entry page I don't output the header and footer navbars - so I'm just
 using is_page to remove the clutter from the page. Of course a better way
 of doing it would be to use template parts - which I'm thinking of doing
 going forward. Less conditionals will make everything easier to read too.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5307#comment:22>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list