Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Buddypress Pages On Mobile Devices


Question

Posted · Report post

Hi,

Earlier discussions was marked as resolved, but actually it was not.

In short:

- Browser specific css plugin is not working on buddypress pages. Sugggestion was that it had to do with buddypress itself.

- On the buddypress forum they are saying it is not a buddypress problem as such. The Browser specific css code is working for the bp-default theme when added to the bp-default functions.php file. Their suggestion is that it has to do with the priority settings of the body_classes filter.

- Buddypress uses the body_classes filter too: https://gist.github.com/4077623. At the end they merge the buddypress classes with the wordpress classes.

- That brings me back to pagelines. I have tried different priority settings for the body_classes filter in both the Browser specific css and Buddypress plugin without any results.

Any idea how I can prioritize the filter the right way?

Thank you.

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

just change the priority in the browsercss plugin:


add_filter( 'body_class', array( &$this, 'body_class' ),999 );
[/CODE]

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Perfect! It is working.

I tried


add_filter( 'body_class', array( &$this, 'body_class' ),9 );

As the wordpress documentation (http://codex.wordpress.org/Function_Reference/add_filter) tells 10 is default and lower numbers correspond with earlier execution...

Anyway it is resolved now.

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites