Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Add BuddyPress Styles to a Theme'

Viewing 25 results - 326 through 350 (of 382 total)
  • Author
    Search Results
  • Ben
    Participant

    This not meant to be a double post but rather more detailed information that I found out last night. The problem has to do with any other user other then super admin that tries to create a blog from the front end.(super admin/admin work from backend posting blogs) Everything else seems to be working but I notice that when a user tries to create a blog, it goes to (a non template looking page) links are spread all around and stuff also missing picture box for theme. I noticed that all of those blogs are using “twenty ten” The BP MU main uses BP Default with out a problem. I also got the same error with (Broken Themes (Site Admin Only)….”bp-default” style sheet is missing.) I looked at the files and notice that there is not .css sheet in bp-default and I see other themes in my theme folder and all of them have the .css file ect. I think I know what to do but still unsure, but I am wondering why the bp-default works with the whole site. So I guess the problem is that the admin blogs from the front end does not know what stylesheet?

    I loaded wp2.9.2 forst then upgraded it to 3.0 however unsure if I added buddypress before update or after. I also loaded buddypress from finding it on the plugin search within in wordpress. Other information is that at first I did the buddypress template pack tried it then uninstalled it, reinstalled it and now it is uninstalled. I tried about 5 hours last night and still same stuff.

    Any suggestions would be great

    Hugo Ashmore
    Participant

    At the most straightforward level of theming you shouldn’t really need to get too involved at a PHP level, creating a child theme will simply allow you to start overwritting or adding your own CSS styles via the style.css sheet in your new theme directory while still using the default themes files and styles – but you perhaps realise that :)

    #84511
    Andrea Rennick
    Participant

    Yeah, that’s a styling issue I’ll have to fix. :D

    Add this to the stylesheet:

    ul.item-list li {
    clear:both;
    }

    #84235

    In reply to: Finding Files

    alanchrishughes
    Participant

    I started to create a child theme for WP once, but I edit things so much I am a basically creating an entirely new theme anyways so I don’t even bother. I just duplicate the default theme folder so I’m not working completely from scratch, name the folder something different, and just go to town on it. A lot of files like the stylesheet and index page I just completely wipe out.

    I had been up all night when I wrote this post, but I think what I was trying to ask was does buddypress not work the same way, where you have an actual file for each page? And instead dynamically generate each page out of scattered php? Is there not a page for activity? a page for forums? a page for groups? for the tabbed members page etc.

    I thought it may be easier to just convert one of my pre-broken down sandbox themes from wordpress and just add some extra code here and there to make it buddypress’able so I know where everything is, but I guess the only documentation for that now is to just use that new plugin converter. But the first thing it told me to do was to start editing the html, which is the opposite of what I need, so I stopped. I also stopped because the files already had the two divs and id’s it said it needed but wasn’t doing anything, I don’t know if it was a wordpress 3 glitch or what.

    #83898
    Griffin Boyce
    Participant

    @SuluhuZetu I’m working on a mobile stylesheet that you would add to whatever theme you were using. I do have a mobile theme that deploys automatically (it’s a plugin), BUT it doesn’t work very well for my needs. Calling a separate stylesheet is the way to go, because you have full control and a minimum of problems.

    A good place to start is to identify which sections you would not need when viewing in a browser, then set those as display:none; If you’ve created a printer-friendly stylesheet before, this is very similar. You have to add extra rules for the elements you do want and don’t forget to preview it with a mobile phone tester.

    http://www.codinghorror.com/blog/2007/01/stylesheets-for-print-and-handheld.html
    http://www.alistapart.com/articles/return-of-the-mobile-stylesheet

    5887735
    Inactive

    I see you are using the BuddyPress Template Pack. That just adds the BP templates and files (php). You still need to style your custom theme. Adding the default css would be defeating the purpose behind the BuddyPress Template Pack. The whole idea is that it is for custom styles.

    You basically have 3 choices.

    1. Manually add the styles you want to your custom theme.

    2. Use the default theme and modify it to your liking.

    3. Find another theme:
    https://buddypress.org/extend/themes/
    http://buddydress.com/
    http://wpmu.org/three-new-buddypress-themes/
    http://www.staenzwebsolutions.com/28-free-buddypress-1-2-compatible-themes/341/
    http://speckyboy.com/2010/02/19/12-amazing-buddypress-themes-and-getting-started-guides/

    Erin Bell
    Participant

    Forgot to mention, even in the conditional styles I added to my header, IE still cannot parse background images… bizarre. I’m having some other issues with BuddyPress (does not appear in plugins list), so maybe they are related.

    #80270
    Hugo Ashmore
    Participant

    @mercime yes I was aware it had been updated as I downloaded and ran it quickly, the issue is not so much that it has been updated but that it’s technically a styling variant rather than a theme and uses all of bp-default structure along with bp-default default.css and as such adopts the bp-default tabs links (As default does it breaks if one has too many extensions./ plugins adding to these links).

    So one would need to get down and dirty with those nav styles to effect a vertical approach, but that may well involve markup refactoring – hopefully it wouldn’t but I haven’t checked the markup with a view to that, but might if I get a moment.

    #79386

    In reply to: Buddypress directory

    r-a-y
    Keymaster

    Read this:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/members-page-not-aligned#post-52249

    Add the CSS snippet to your WP theme’s stylesheet… not the default BP theme’s stylesheet.

    #78377
    Hugo Ashmore
    Participant

    If you simply want it sitting to the side of the profile field table then one approach that you could take but which requires a little editing of your profile-loop.php file along with functions.php so is best done as child theme files would be this:

    Create a function to wrap that google maps api code in and then add that function to:

    add_action(‘bp_before_profile_loop_content’, ‘user_profile_locationMap’);

    In your profile-loop.php file find the do_action(‘bp_before_profile_loop_content’) around this function wrap a new div with an ID of say ‘profile-content-sidebar’ it’s this new element that you would float to the right.

    As – In my case – the ‘Location’ field is a late addition and for most users it will appear on their edit screens but will remain unused I don’t want the new div rendering to the right or otherwise if empty so a conditional is used to test the ‘Location’ field for data.

    The new div is wrapped in:

    if( bp_get_profile_field_data( ‘field=Location’)):

    both for the opening and closing tags this way if ‘Loction’ is empty then the new div will not render and the do_action will be left to render any actions at the top before the profile data table loop as before, with the ‘Location’ field having data then the div is rendered.

    Lastly some styles are required to create the desired visual rendering so create a ruleset for the new element #profile-content-sidebar which would contain properties: float:right; and width:250px the div that hold the profile table ( div class=”bp-widget base” ) now needs to be margined away from the right edge you could do this using a sibling selector which would be the preferred approach as you can in a sense make use of CSS ability to implement pseudo conditional selectors e.g:

    #profile-content-sidebar + .base {margin-right:260px;}

    This is the preferred approach as this ruleset to margin the table elements parent away is only applied if our new div is rendered if not the table will still stretch 100% as before. Of course this approach doesn’t work in certain older generation browsers so it might be best instead to set a new ID on that table parent element to style on but set that ID with the same conditional query used on the new div element earlier.

    There is a certain flaw to the checking for the field ‘Location’ while it works it suits a very particular circumstance and if that area to the right was required for other actions then this ‘Location; check might prove a hindered and doubtless there is a better approach to be worked up in the long run.

    #77361
    r-a-y
    Keymaster

    Add the following to your theme’s stylesheet:

    div#topic-meta h3 {padding-bottom: 1em;}

    r-a-y
    Keymaster

    Did you add a “buddypress” tag to your theme’s stylesheet?

    eg.

    /*
    Theme Name: BuddyPress Dusk
    Theme URI: http://example.org/themes/dusk/
    Description: Dark theme for BuddyPress.
    Version: 1.0
    Author: John Doe
    Author URI: http://example.org/
    Template: bp-default
    Tags: buddypress, two-column, grey, dark
    */

    Notice the “buddypress” tag.

    #76250
    Hugo Ashmore
    Participant

    Do not change the markup directly, likely you have not added your ‘code’ to every instance of the pages that require it, regardless this isn’t the corect approach for many reasons that I won’t labour.
    you should add images such as this using the background property but from the primary stylesheet for your theme with the graphic itself uploaded to whatever directory exists for iamges in that theme directory. If you find and open your primary stylesheet you will probably see examples of the background property used to place graphics on other elements so simply copy the example to the body element while replacing the graphics file name to the one you want.

    #76097
    stwc
    Participant

    wordpress will load page.php for every page you create so you cant really customize it..

    Not necessarily.

    Echoing modemlooper, you don’t need any of that code above. If you want Pages you create in WP to have different layouts, create a template file (https://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates), upload it to the root of your theme, and when you add the new page in WP, just select the template you wish to use. Arbitrary PHP, HTML, stylesheets, whatever.

    #76009
    shamus
    Participant

    @r-a-y here you go

    /* Inherit the default theme styles */

    @import
    url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );

    /* Inherit the admin bar styles */

    @import
    url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );

    /* Dark Colour Styles */

    @import
    url( _inc/css/colours.css );

    div.activity-comments ul li {padding:10px 0;}

    #74550
    r-a-y
    Keymaster

    You’ll have to modify the theme’s stylesheet.

    Hopefully, you’ve already created a child theme, then you can override the background in your child theme’s style.css with:

    eg.

    body {background:url(URL TO YOUR IMAGE) no-repeat !important;}

    #74425
    3sixty
    Participant

    To get rid of the title, go to your stylesheet (.css) and find #header h1

    add

    display:none

    And the title will disappear.

    A couple tips:

    1. Use Firebug or Google Chrome’s built in developer tools to troubleshoot style issues

    2. Use a child theme (search Buddypress Child theme) or you will lose your changes

    #72486
    techguy
    Participant

    Might be worth adding this link to the documentation on creating a child theme: https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/ It has the other details for creating the stylesheet and activating the child theme as well. Details a newbie might want to have on top of what you’ve already said. I know since I just changed my registration page as you described this week:-)

    #72480
    stwc
    Participant

    Create a child theme (it’s easy — do a search for instructions on how), copy register.php from /plugins/buddypress/bp-themes/bp-default/registration to /registration in your new child theme (which will just be the default theme plus this change and any other changes you make in future). Edit that registration.php.

    Now your new registration page will override the default, and you are safe from having your changes overwritten by future version upgrades!

    Any time you want to override anything (particularly styles), you can just copy files from bp-default, preserving folder structure, to your child theme and modify them there. It’s a little confusing at first, but is extremely powerful and useful.

    #71784

    In reply to: Bit of theme help

    Hugo Ashmore
    Participant

    The issue is that whatever theme you are working with has a style.css that applies rulesets using descendant selectors and on the elements you mention your style.css describes generic styles for things like ul li elements but as child elements of parent such as #content.

    The stylesheet that appears to be created to apply the necessary styles required by buddypress i.e bp.css is styling on the class tokens.

    As an example the div.item-list-tabs ul element requires and has a margin:0 applied in bp.css however in styles.css you have #content-body ul applying large margins and this ruleset has a higher specificity or weight due to the use of the ID selector which will override the clas selector described in bp.css.

    I’m afraid that you have a little work to do to in getting whatever theme it is to work for BP, perhaps the fastest approach is open up bp.css and where you have :

    div.item-list-tabs ul {}

    Add to the beginning of the selector statement #content-body

    #content-body div.item-list-tabs ul {}

    This would enusure that the BP rules carry a higher weight and will win out or overrule.

    #71287
    r-a-y
    Keymaster

    Requires some CSS knowledge.

    You can probably override this setting in your child theme’s stylesheet (I’m assuming you already use a child theme!).

    Don’t know what a child theme is?

    https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    When you’ve created a child theme, add this to your child theme’s stylesheet:

    #wp-admin-bar {bottom:0 !important;}
    #wp-admin-bar ul li ul {bottom:23px !important;}

    #71218
    @mercime
    Participant

    bp-default child themes usually render something like below in Appearance > Themes

    The template files are located in /themes/MyChildTheme. The stylesheet files are located in /themes/MyChildTheme. MyChildTheme uses templates from BuddyPress Default. Changes made to the templates will affect both themes.

    Tags: buddypress, multiple columns, fixed width, group blog

    Creating BuddyPress Child Themes – https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    and remember to add “buddypress” to Tags in style.css of custom child theme

    #70476
    thekmen
    Participant

    Thats because there is no Mystique styles for BuddyPress in tour style.css & Mystique doesn’t recognise the BuddyPress pages.

    You could add the styles yourself, or maybe an easier way, create a blank page in your wp-admin, call it activity & see if Mystique page styles are picked by your activity page then.

    #69605
    Gene53
    Participant

    @DJPaul Thanks for the info.

    I’m playing around with a simple child theme by creating only a style.css file and so far, the templates work but importing the stylesheets doesn’t seem to work, I added the suggested lines in my style sheet but to no avail.

    /* Inherit the default theme styles */
    @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );

    /* Inherit the default theme adminbar styles */
    @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css);

    Thanks,

    Gene

    #69279
    sueme
    Participant

    Thank you for being quick.

    I’ve created a folder named img into my child theme, and placed default_header_red.jpg into it.

    I’ve added the css into style.css so that from line 8 it reads as follows:

    ‘Template: bp-default

    Tags: buddypress, two-column, grey, dark

    */

    /* Inherit the default theme styles */


    @import
    url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );

    /* Inherit the default theme adminbar styles */


    @import
    url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );

    #header {

    background: url( img/default_header_red.jpg );

    } ‘

    I’ve activated the Child Theme in ‘Site Admin’ and ‘Appearance’ but my header is still the same color.

Viewing 25 results - 326 through 350 (of 382 total)
Skip to toolbar