Search Results for 'Add BuddyPress Styles to a Theme'
-
AuthorSearch Results
-
March 4, 2013 at 8:03 am #155014
In reply to: Theme CSS overriding BuddyPress styles
Hugo Ashmore
ParticipantBy & large the point was/is with the BP theme compatibility styles that they do or provide as little styling as possible, to slot into a theme BP has to render just very simple positioning styles more than anything, leaving the theme to provide styles.
You will need to look at the mechanisms the theme provides for adding styles and provide adjustments where the theme causes issues for BP elements.
BP provides a top level namespace type token #buddypress so using that you can apply styles that have a higher specificity.
March 3, 2013 at 3:15 am #154929@mercime
Participant>> text above the status update box that says something like “What’s New?” so members know to click in there.
>> I would like to know how to get that back?
@39images @bphelp for that specific item1. create a new folder named buddypress in your active WP theme
2. within that buddypress folder you created, create a folder named activity
3. download https://buddypress.trac.wordpress.org/browser/trunk/bp-templates/bp-legacy/buddypress/activity/post-form.php and place it in your new activity folder like so:
wp-content/themes/NAME-OF-YOUR-WP-THEME/buddypress/activity/post-form.php4. Open up post-form.php. On line 21 https://buddypress.trac.wordpress.org/browser/trunk/bp-templates/bp-legacy/buddypress/activity/post-form.php#L21 insert http://pastebin.com/z8e7xyRZ
5. Add the following to your theme’s stylesheet:
#whats-new-form p {
margin-left: 70px;
}February 25, 2013 at 5:04 pm #154071Hugo Ashmore
ParticipantFrom a recent post by Boone this duplicate content may be related then to 1.7’s aggressive loading of styles, and scripts theme authors are going to need to add:
add_theme_support(‘buddypress’)
to their themes functions file, preferably hooked to ‘after_theme_setup’
but this will depend on how this theme has been configured to work with BP if at all?
February 13, 2013 at 2:39 pm #152973In reply to: [Resolved] Override bp-default responsive css
aces
ParticipantIf you want to replace the responsive css with your own, you should be able to disable the default with
function bbg_enqueue_styles() { remove_theme_support( 'bp-default-responsive' ); } add_action( 'wp_enqueue_scripts', 'bbg_enqueue_styles', 5 );For more info see https://buddypress.trac.wordpress.org/ticket/3881#comment:2
February 6, 2013 at 9:20 pm #152531In reply to: Forums listing on forums page badly formatted
@mercime
Participant@scorpiouno unfortunately, your theme’s styles have overwritten the default forum styles that are enqueued by the bbPress plugin. For example, if bbPress is activated using the Twenty Twelve theme, the forums are styled as expected http://testbp.org/groups/buddypress-testers-614548248/forum/
Initial scan of your forum shows some style corrections you can add to the BOTTOM of your theme’s style.css file:
#entry #bbpress-forums ul {
margin: 0;
}
#entry #bbpress-forums ul li {
margin-left: 0;
list-style-type: none;
}
p.bbp-topic-meta img.avatar {
display: inline-block;
width: 14px;
}February 5, 2013 at 12:38 am #152404In reply to: upgrading to 1.5 prior to 1.6 (with a hail mary :-)
mischiefwizard
Participantand now it seems the REPOST has disappeared, so here’s a better version:
Hi guys,
I just upgraded WP to latest version, and then after a long search found the CP 1.5 files and overwrote my 1.2.8 installation. Now to get it all working with my custom child theme Would love some help.I’m trying to implement the article at https://codex.buddypress.org/developer/releases/developer-and-designer-information/, and
1) it says:
>>>>>>
You’ll also need to modify the following file in your WP theme:/wp-content/themes/YOUR-THEME/members/single/home.php
Open up /members/single/home.php in your editor and add:<<<<<<<>>>>>In your functions.php declare the function like this:
function bp_dtheme_enqueue_styles() {
// Bump this when changes are made to bust cache
$version = ’20110804′;// Default CSS
wp_enqueue_style( ‘bp-default-main’, get_template_directory_uri() . ‘/_inc/css/default.css’, array(), $version );// Right to left CSS
if ( is_rtl() )
wp_enqueue_style( ‘bp-default-main-rtl’, get_template_directory_uri() . ‘/_inc/css/default-rtl.css’, array( ‘bp-default-main’ ), $version );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_styles’ );
<<<<<<But then I get a "Call to undefined function add_action() " error
3) How do I ensure it will enqueue the .css file in my child theme directory?
4) Do I need to find the developer notes for upgrading to buddy press 1.4 and 1.5 as well and make other changes to my child theme? Where would I find these? The above link just talks about BP 1.5 and 1.5.2
5) I get undefined function error from my child them header calling
a) "bp_dtheme_page_on_front()" function.:
b) Call to undefined function bp_is_page()
It seems these functions aren’t deprecated, so how can i ensure they get loaded properly?
Thanks in advance
David
January 18, 2013 at 5:24 am #151019In reply to: Activity story aligning
@mercime
Participant@ciumbargi Big avatars at beginning of the stream denote “Major” activities which include new blog post published, new forum topic posted, etc. Small avatars at the beginning of the stream row denote “minor” activities which include joining a group, new friendships, new registrations, etc. So there is a method to distinguish which is which.
If you still want to make those changes, add the following to your stylesheet
<code>.activity-list li.mini .activity-avatar img.avatar,
.activity-list li.mini .activity-avatar img.FB_profile_pic {
height: 50px;
margin-left: 0;
width: 50px;
}</code>If you’re using browsers like FireFox, Chrome or Safari, right click on the element you want to change, choose “Inspect Element” from the box which shows up and you’ll find the styles you would need to add/change in your theme.
January 15, 2013 at 5:42 pm #150699Mitesh Patel
ParticipantSorry for delayed response. I thought the thread was dead. Nevertheless, thanks for your directions.
It seems I chose the wrong words to describe my problem. The problem was “after the compatibility process is over, the site doesn’t look 2012-ish, with bp-default styles in BP parts.” After the compatibility process is done successfully (which I did), the theme “works fine”, but doesn’t look fine. So in other words, how to make the BP part look like 2012.
Both the BP-compatibility-pack approach and your approach worked fine, except, the theme CSS is (understandably) the same (bp-default). I ended up modifying the bp.css to make it look like it belongs to 2012 theme. I also “hard-coded” (so to speak) the BP specific changes in my child theme itself (added the bp-template-pack.php part with some modifications to functions.php), and a few minore changes to BP templates, so that my child theme is BP-compatible out of the box (no need of plugin or external CSS). Will upload the child theme somewhere and post a link here as I get to it.
Thank you @mercime for your help.
January 14, 2013 at 9:55 pm #150657@mercime
ParticipantI got them from my old template
The thing is, those styles may not even work in your new template unless the HTMLtags/selectors/etc in your new template matches those of your old template. You could try adding those external stylesheets (bp.css and bp-admin.css)to your theme’s header.php see http://www.w3schools.com/css/css_howto.asp
January 8, 2013 at 7:52 pm #150007In reply to: Upgraded and now nav and sidebar is responsive?????
aces
ParticipantYou could try putting the following in you child theme functions.php file
`function bbg_enqueue_styles() {
remove_theme_support( ‘bp-default-responsive’ );
}
add_action( ‘wp_enqueue_scripts’, ‘bbg_enqueue_styles’, 5 );`For more info see: https://buddypress.trac.wordpress.org/ticket/3881#comment:2
January 8, 2013 at 7:48 pm #150005aces
ParticipantYou could try putting the following in you child theme functions.php file
`function bbg_enqueue_styles() {
remove_theme_support( ‘bp-default-responsive’ );
}
add_action( ‘wp_enqueue_scripts’, ‘bbg_enqueue_styles’, 5 );`For more info see: https://buddypress.trac.wordpress.org/ticket/3881#comment:2
January 3, 2013 at 2:26 pm #149536In reply to: Change button colours
@mercime
Participant@panashe add/remove styles in your theme’s style.css file. Depends on your theme.
January 3, 2013 at 2:27 am #149505In reply to: [Resolved] Buddypress >> MAINPAGE FORUM
@mercime
Participantand i only can access the main forum from the side bar
Actually, you have your sitewide forum index page at http://justinharvey.com/F/
Also i am trying to add CSS to My pages and cant figure it out. any tips?
One usually adds the styles to your theme’s style.css file. However, since you’re using the BP Default theme, any modifications made to the style.css file will be overwritten when you upgrade BuddyPress. It would be better if you created a child theme of the BP Default theme and add styles to that child theme’s style.css file. Or use a WordPress theme and install/activate the BP Template Pack plugin and go through Appearance > BP Compatibility process.
December 18, 2012 at 12:06 am #147688In reply to: Menu here on Buddypress.org
@mercime
ParticipantYou just add
position: fixed;to your #header (or whatever hook you have) in your theme’s stylesheet. Use Firebug, a FF add-on, or the Chrome Inspector to find what styles are used in the elements you want to copy.December 14, 2012 at 7:07 pm #147410@mercime
Participant@naijaping add the following at the top of your theme’s functions.php file
/**
* Sets up the content width value based on the theme’s design and stylesheet.
*/
if ( ! isset( $content_width ) )
$content_width = 625;change 625 to theme content width. See how it’s done with twenty twelve theme https://themes.svn.wordpress.org/twentytwelve/1.1.1/functions.php
December 13, 2012 at 2:37 am #147250In reply to: global.js 404 in javascript console
@mercime
Participant@jeellison @migson add this to your theme’s stylesheet:
#whats-new-options {
height: 40px !important;
}December 12, 2012 at 6:10 am #147154@mercime
Participant@rossagrant theme authors should add $content_width – it’s a constant used to set the maximum width of embedded content like videos. It’s a standard part of just about any well-coded theme like those in WP theme repo per requirement https://codex.wordpress.org/Theme_Review#Required_Hooks_and_Navigation
Add the following at the top of your theme’s functions.php file
/**
* Sets up the content width value based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) )
$content_width = 600;Measurement is in pixels. Change 600 as needed.
December 2, 2012 at 12:01 pm #146336In reply to: child buddypress
alen9788
ParticipantThanks for your help.I has builded the child theme of bp child with 2 folders as the instruction.
And add the codes to style.css/*
Theme Name: BP Child
Tags: buddypress
Template: bp-default
*/And add the code to functional.php
if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
function bp_dtheme_enqueue_styles() {// You should bump this version when changes are made to bust cache
$version = ‘20111109’;// Register stylesheet of bp-dusk child theme
wp_register_style( ‘bp-dusk’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );// Enqueue stylesheet of bp-dusk chid theme
wp_enqueue_style( ‘bp-dusk’ );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_styles’ );Then i appended the changing css codes to child theme style.css
.content-wrapper-inner {
background-color: black;
}
BUT nothing has changed.And
where should i do to show the post&topic time and date use the code of https://codex.wordpress.org/Function_Reference/the_time
December 1, 2012 at 12:26 am #146247In reply to: Theme styles and search bar
illioo
ParticipantThanks!
I will take a look at the menu and style questions more closely. Another person on the web committee is going to help.
For the search, I resolved this by removing the onclick I had added to the header (which made everything in the header div area link to the homepage).
For some reason I’m not being notified of buddypress.org replies in my email, will have to check out my settings.
November 20, 2012 at 6:25 pm #145413In reply to: How to make Buddy Press Compatible with Theme
@mercime
ParticipantB. COPY sidebar.php and Save As > sidebar-buddypress.php file
Open up sidebar-buddypress.php and at the very TOP of the file above all other code, add:
``At the very BOTTOM of the same file, below all other code, add:
`jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();
jQuery( ‘input#signup_with_blog’ ).click( function() {
jQuery(‘div#blog-details’).fadeOut().toggle();
});
});`
Save file.
C. Upload header-buddypress.php and sidebar-buddypress.php to your theme folder in server wp-content/themes/vagenta/ in the same directory where your regular header.php and sidebar.php files are
D. Final note: Copy the style modifications for some BP elements https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste those at the bottom of your theme’s stylesheet, then adjust to taste.
November 16, 2012 at 6:18 pm #145150In reply to: Elegant themes compatibility – Lucid
@mercime
ParticipantB. COPY sidebar.php and Save As > sidebar-buddypress.php file
Open up sidebar-buddypress.php and at the very TOP of the file above all other code, add:
``[UPDATED-11/20/12 @rakshithvbharanigmailcom ] At the very BOTTOM of the same file, below all other code, add:
`jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();
jQuery( ‘input#signup_with_blog’ ).click( function() {
jQuery(‘div#blog-details’).fadeOut().toggle();
});
});`
Save file.
C. Upload header-buddypress.php and sidebar-buddypress.php to your theme folder in server wp-content/themes/lucid/ in the same directory where your regular header.php and sidebar.php files are
D. Final note: Copy the style modifications for some BP elements https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste those at the bottom of your theme’s stylesheet, then adjust to taste.
November 14, 2012 at 7:11 pm #145006In reply to: Buddypress layout
@mercime
Participant@zeecc No need to insult the BP generated design. If you don’t like it, just say so.
== So from what i’ve understand it is possible to use the frisco layout to insert into my theme. ==
Frisco theme has it’s own stylesheet where you copy the styles from. Use Firebug, the Firefox add-on to check which styles go with which HTML tag. Or, hire a developer to make the changes for you.November 9, 2012 at 3:25 pm #144769modemlooper
ModeratorI don’t want to discourage anyone from creating BuddyPress themes but version 1.7 is very close and you don’t need to go through special hoops to create a theme for BuddyPress. BP 1.7 will work with any theme. The template files in 1.7 are minimally designed to fit inside existing WP themes. You can then add a few more styles to your WP theme to make the BP template files look even better with your theme.
You can test out the new way BuddyPress theming will work: https://github.com/paulgibbs/turtleshell
November 8, 2012 at 5:03 pm #144731@mercime
Participant@ronnie_fantastic You’re welcome. Glad you’ve resolved issues on your own. Some finishing touches to your stylesheet you might like to consider:
`
Add these to bottom of stylesheet:div.item-list-tabs ul li {
background-image: none;
margin-left: 0;
margin-right: 5px;
}
div#subnav.item-list-tabs {
border-bottom: 0;
}
.padder div.pagination {
margin: 0 !important;
}CHANGE
div.item-list-tabs ul li:first-child {
margin-left: 15px !important;
}
to
div.item-list-tabs ul li:first-child {
margin-left: 0 !important;
}`November 8, 2012 at 6:49 am #144715@mercime
ParticipantB. At the bottom of the same 16 files, replace:
`
`
with the following (except for registration/register.php):
``
with the following for registration/register.php:
`jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();
jQuery( ‘input#signup_with_blog’ ).click( function() {
jQuery(‘div#blog-details’).fadeOut().toggle();
});
});`
Save files.
C. Upload the 6 BP folders containing the 16 files you’ve just revised to your server wp-content/themes/flare/
D. Copy the style modifications made in BP Twenty Ten at https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste to your theme’s stylesheet. Adjust to taste.
-
AuthorSearch Results