Search Results for 'Add BuddyPress Styles to a Theme'
-
Search Results
-
Hello everyone,
I’m trying to create a simple custom theme to override the BuddyPress (Nouveau) registration page, but I’m consistently running into a White Screen of Death (WSOD). I’ve been troubleshooting for a while and would appreciate any help you can offer.
My Goal:
To create a custom theme that overrides register.php from the BP Nouveau template pack.My Environment:
OS: Windows
Local Development Tool: DevKinsta
Plugin: BuddyPress (latest version)
The Problem:
When I activate my custom theme, I get a WSOD when trying to access the site (e.g., mysite.local/register/).Here is a summary of the troubleshooting steps I have already tried:
Enabled WP_DEBUG: I have set WP_DEBUG, WP_DEBUG_LOG, and WP_DEBUG_DISPLAY to true in my wp-config.php. However, no errors are ever displayed on the screen or written to the debug.log file. The page is just completely blank.
Checked for PHP Errors: I initially had parse errors (an extra } bracket) in my functions.php and register.php files. These have been found and corrected.
Checked for BOM: I have verified with my code editor (VS Code) that all my theme files are saved with UTF-8 encoding and do not have a Byte Order Mark (BOM).
Reset Permalinks: I have gone to Settings > Permalinks and clicked “Save Changes” multiple times to rebuild the rewrite rules.
Theme Deactivation Test: When I rename my theme’s folder to force WordPress to deactivate it, I can access wp-admin again. This confirms the issue is within my theme’s code.
File Permissions: I received a security warning that /wp-content/ was too writeable. I have reset the permissions for my entire site folder on my Windows machine to ensure they are not too permissive.
My Theme Structure and Code:
My theme is very simple.
1. Directory Structure for the Override:
wp-content/themes/kfluxtheme/buddypress/members/register.php
(The register.php file is an exact, unmodified copy from wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/)/* Theme Name: K-Flux Theme Author: My Name Version: 1.0 */<?php /** * Theme functions and definitions. */ if ( ! function_exists( 'kfluxtheme_setup' ) ) { /** * Basic theme setup. */ function kfluxtheme_setup() { // Add support for BuddyPress (ESSENTIAL) add_theme_support( 'buddypress' ); // Let WordPress manage the document title. add_theme_support( 'title-tag' ); // Enable support for Post Thumbnails. add_theme_support( 'post-thumbnails' ); } } add_action( 'after_setup_theme', 'kfluxtheme_setup' ); /** * Enqueue scripts and styles. */ function kfluxtheme_enqueue_scripts() { wp_enqueue_style( 'kfluxtheme-style', get_stylesheet_uri(), array(), '1.0' ); } add_action( 'wp_enqueue_scripts', 'kfluxtheme_enqueue_scripts' );Despite all these steps, the WSOD persists when my theme is active. Since WP_DEBUG is not showing any errors, I’m running out of ideas on how to debug this further.
Has anyone encountered a similar issue with DevKinsta or have any suggestions for what I might be missing?
Thanks in advance for any help.
I have BP v.9.1.1 installed under WP 5.8.2 and the site in progress is using a subdomain with its directory at the root. The directory is named as per the subdomain (i.e. subdomain.domain.tld). Unfortunately, I’m unable to share the URL.
I’ve been wrestling with this issue for a while now. When logged in as the admin and viewing the Members Directory, the bp-nouveau-css styles (…/buddypress.min.css?ver=9.1.1) load just fine but they won’t load when logged out. This is happening specifically with an Avada child theme. I have reached out to Avada support but I’m not holding my breath for a solution from them.
I cloned the site and began by activating the Twenty Twenty One. Like the original site, bp-nouveau-css loaded just fine when logged in or out. This was also the case for Twenty Twenty One child or the Avada parent themes. However, activating the Avada child theme prevents that stylesheet from loading.
In my Avada child theme, I’ve only added the buddypress/members/ directories so I could make some tweaks to the listings and profile pages. The child theme’s style.css relies on the Nouveau template CSS in the BP plugin directory. With its styles missing, the page falls apart.
I also have some custom functions in plugins/bp-custom.php but none of those deal with stylesheets.
I’ve also tried placing the CSS folder from /buddypress/bp-templates/bp-nouveau/ in /avada-child-theme/ as a test. When logged in, bp-nouveau-css loaded from the child theme. When logged out, other BP styles were loaded from the plugin directory, not the child theme, and it still refused to load bp-nouveau-css.
Can I add a function somewhere to enqueue the styles I need since the child theme won’t do it on its own?
I’d actually like to add a function to only load BP’s CSS and JS where necessary since only a couple of pages use BP. I’ve found this SERT Media article but comments suggest the code won’t work with Nouveau.
I’d greatly appreciate any help with this issue. Cheers.
Topic: Dequeue bp-nouveau css
I want to dequeue, or override, the bp-nouveau stylesheet. I have tried:
function dequeue_buddypress() { if (!is_admin()) { wp_dequeue_style('bp-nouveau'); wp_deregister_style('bp-nouveau'); } } add_action('wp_enqueue_scripts', 'dequeue_buddypress', 1);Have also played with priorities from 1 to 99 and tried the handle bp-nouveau-css.
as well as trying to override the css in the theme but neither has worked.
Anyone know how I can get the bp-nouveau css to dequeue?
I use BuddyPress (and BuddyBoss Social Learner Theme) to interact with my students who take courses on my WordPress / Learndash website.
Q1) One thing that kind of drives me crazy is I can’t put line feeds in my messages without adding a character to space out the sentences.
I use to type in
which worked, but the emailed copy of the message showed in place of just a blank line.So that in mind, what am I missing?
Is there any setting or stylesheet I can edit to allow a space between sentences in BuddyPress Messages?
People really hate walls-of-text, and spaces between sentences make text more readable, just like you find here on the Buddypress website and in this post I’m making.
Note that I don’t have this issue with BBPress forum posts.
Q2) I’m imperfect, and whenever I create a notice to all users I always have a typo 🙁
BUT, I just can’t find any way to edit these announcement messages?
Just checked, and yes it is the 21st century and even Facebook now lets you edit announcements, so I figured it must be me, that I just don’t know how to edit them.
Can someone point me in the right direction?
Thanks a million in advance!
Shawn
Topic: Child-theme style.css
I have tried to add BuddyPress to my child-theme.
My object is to change the layout of the register and activate form.So I have created the following folder structure:
\wp-content\themes\child-theme\buddypress\members\In this folder I placed two files:
index-register.php = same content as \wp-content\plugins\buddypress\bp-themes\bp-default\registration\index-register.php
index-activate.php = same content as \wp-content\plugins\buddypress\bp-themes\bp-default\registration\index-activate.phpThis seems to work, but the layout of the forms is completely wrong, all input boxes are not aligned etc. So then I checked this forum and saw that it might be a good idea to import a stylesheet from buddypress in the child-theme folder.
So I added the following line to \wp-content\themes\child-theme\style.css
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );This fixes the aligning problem, but totally destroys the full width layout of the site.
The sidebard is destroyed and the background color is wrong etc. etc.Is there a way to edit the register and activate form with only overrides, and leave the default styling in tact?
Any help appreciated!