Archived

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

  • 0

Resolved Buddypress Pages On Mobile Devices


Question

Posted · Report post

Hi,

I've posted a question on http://www.pagelines.com/store/plugins/browser-css/ about custom css for buddypress pages on mobile devices. The Browser Specific CSS plugin does not set custom body classes on buddypress pages. Would be nice if this feature could be added.

Share this post


Link to post
Share on other sites

7 answers to this question

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

I asked this question on the buddypress forum. The response was that it is probably plugin problem...

Anyway. I looked again at the body classes on my site and I can see that regular pagelins body classes are added to buddypress pages. The question that comes to my mind is: what is the pagelines theme doing different than the browser specific plugin?

Furhter, Buddypress is using the filter too. Here is the function https://gist.github.com/4077623. At the end they are merging the buddypress and wordpress classes. Could this be the solution for the browser specific plugin as well?

Thank you.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

I tested a little further. When I activate the bp-default theme and add the browser specific css code in the bp-default functions.php the body classes are added to all pages. On the buddypress forum it is suggested it has somehting to do with the priority settings of the filter. I tried different priority settings for the filter in the plugin, but without luck. Any ideas how I can prioritze this the right way?

Share this post


Link to post
Share on other sites

Posted · Report post

Well running a filter dependant on a browser string is irrelevant in the case of your site, as you have opted to run a hardcore static page cache and serve the same static file to everyone no mater what browser they are running.

Share this post


Link to post
Share on other sites

Posted · Report post

Am I missing something? It does work for all the other pages on my site.

Share this post


Link to post
Share on other sites

Posted · Report post

Well youd have to ask the buddypress people then. The plugin uses the standard body_class filter to add body classes depending on your browser, its very simple.

But if BP is changing that filter, or not using it then it isnt going to work.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok. Thank you. I will ask them.

Share this post


Link to post
Share on other sites