Skip to:
Content
Pages
Categories
Search
Top
Bottom

Styling BuddyPress


  • jessicana
    Participant

    @jessicana

    I changed limited styles in buddypress but have one problem that I can’t change one element as appears in this image.

    I am trying to change this code from auto to fixed and I think it will resolve the problem:

    #buddypress #whats-new-options {
    	overflow: auto;
    	height: 0;
    }

    But when I change it to fixed, nothing changes and when I use inspect element, it gives auto again!

    I will share some CSS i changed if this is helpful:

    /* Adjust BP registration fields - I added 36px height because some fields don't look right on firefox*/
    #buddypress #signup_form.standard-form input[type="text"], #buddypress #signup_form.standard-form textarea, #buddypress .form-allowed-tags, #buddypress #commentform input[type="text"], #buddypress #commentform textarea {
        height: 36px;
        width: 90%;
    }

    I changed the font height for the following items to become 1.0rem.
    #buddypress button,
    #buddypress a.button,
    #buddypress input[type=submit],
    #buddypress input[type=button],
    #buddypress input[type=reset],
    #buddypress ul.button-nav li a,
    #buddypress div.generic-button a,
    #buddypress .comment-reply-link,
    a.bp-title-button

    I wish this helps.

    Thanks!

Viewing 22 replies - 1 through 22 (of 22 total)

  • jessicana
    Participant

    @jessicana

    The image is: http://imgur.com/6BIHX1Y


    danbp
    Participant

    @danbp

    what’s new field is ajaxified, and so far i remember (may be wrong), some parts are hardcoded in the js file.


    @mercime
    Participant

    @mercime

    If I recall well, one of the tricks was changing the height to 50 px.


    jessicana
    Participant

    @jessicana

    I tried all of these codes to remove this but non worked!

    element.style {
        height: 50px;
    }
    #buddypress #whats-new-options {
        overflow: fixed;
    }
    #buddypress form#whats-new-form textarea {
        background: none repeat scroll 0 0 #fff;
        color: #555;
        font-family: inherit;
        font-size: 100%;
        height: 50px;
        padding: 6px;
        width: 100%;
    }
    #buddypress form#whats-new-form #whats-new-content {
        margin-left: 55px;
        margin-bottom: 50px;
        padding: 0 0 20px 20px;
    }
    

    What happens is that when the page loads I see [ post update ] in correct CSS but it becomes hidden under the text area because of the auto overflow; it disappears. When I click on the text area I see what I have provided in the above image! I can’t remove those two arrows beside [post update].

    Thanks!


    jessicana
    Participant

    @jessicana

    I am fine with the auto overflow as long as when I click on the text I can see [post update] in full as it should be.


    danbp
    Participant

    @danbp

    the what’s new height is set to 20px in bp-legacy/buddypress/js/buddypress.js


    jessicana
    Participant

    @jessicana

    @ danbp – Thank you for your efforts in helping me. What you suggested did not work.
    I will explain what caused this problem and the steps I have done trying to resolve this problem based on what you suggested.

    I did the following:

    1) I edited buddypress.js file and changed the following two fields from 20px to 50px:
    `});
    jq(‘form#whats-new-form textarea’).animate({
    height:’20px’
    });`
    and

    
    jq('#whats-new-form textarea').animate({
    				height:'20px'

    2) I added the following to my CSS:

    #buddypress #whats-new-options {
    overflow: fixed;
    height: 50;
    }

    post update appears with no problems but when I click on the text area to start typing the problem appears again.

    What caused the problem is the following custom CSS:

    #buddypress button,
    #buddypress a.button,
    #buddypress input[type=submit],
    #buddypress input[type=button],
    #buddypress input[type=reset],
    #buddypress ul.button-nav li a,
    #buddypress div.generic-button a,
    #buddypress .comment-reply-link,
    a.bp-title-button {
    border: 4px solid #888;
    font-size: 1.0rem;
    }

    If I delete the above two lines, everything will be fine with post update button. The problem is more like container or margin, something like that.

    Thanks!


    danbp
    Participant

    @danbp

    Perhaps a typo error ?

    #buddypress #whats-new-options {
    overflow: fixed;
    height: 50;
    }
    

    Try height: 50px;


    jessicana
    Participant

    @jessicana

    I tried the above code and inserted it in my custom CSS and it didn’t work. I also changed the buddypress.js following codes to 50px and it didn’t work!

    jq('form#whats-new-form textarea').animate({
    					height:'20px'
    
    jq('#whats-new-form textarea').animate({
    				height:'20px'
    			});

    This is the only thing I am unable to customize in buddypress!

    Thanks


    danbp
    Participant

    @danbp

    which is the theme you use ?


    jessicana
    Participant

    @jessicana

    I use Vellum wordpress theme


    jessicana
    Participant

    @jessicana

    I don’t think this is a theme related issue.

    Today I added the BuddyPress Activity Privacy plugin and for some reason post update becomes better styled but I still have the same problem. I am willing to resolve it no matter what.

    I have a question, how can I create a new buddypress.js file in a way similar to the functions.php file in a child theme. Can I do this (if yes. How?) or I have to make direct adjustments on that file and keep updating it with every release? I made direct adjustments on that file anyway and it didn’t solve the problem. Is there any other file related to the post update button?

    Thanks


    shpitzyl
    Participant

    @shpitzyl

    @jessicana

    In your child theme directory, create a folder named “js”. Copy the buddypress.js into that folder and make all the changes inside that file.

    If you are using buddypress 2.1 you will have to rename the file to buddypress.min.js (when buddypress 2.1.1 will be released you will probably have to rename it back to buddypress.js because it is 2.1 bug).

    Hope it helps.


    jessicana
    Participant

    @jessicana

    @shpitzyl Thank you for the guidance.


    jessicana
    Participant

    @jessicana

    @shpitzyl @danbp I followed and applied what you said and it didn’t work. I even made the direct changes inside bp-legacy> buddypress.js and did not work. I deleted the file buddypress.js and made a test to post an update and I was able to post an update and the styling problem was still there.

    The only way to solve this is giving the text box of post an update a fixed width that remains the same before and after we post an update. To solve this we need to cancel the auto hide for the textbox.

    I wish this helps!


    Chester99
    Participant

    @chester99

    @shpitzyl Thank you it helped me too.


    jessicana
    Participant

    @jessicana

    @Chester99 did you have similar issue and you were able to resolve it?


    shpitzyl
    Participant

    @shpitzyl

    @jessicana

    I was been able to fix that issue on my site but unfortunately I can’t remember how I did it, it was a while ago… My buddypress site is heavily modified and I can’t track all the changes I made.

    One thing that I can tell you for sure is that I haven’t changed overflow to fixed inside #whats-new-option. I think I changed something in my child-theme’s style.css. Something that is not directly related to buddypress.

    I will look into it later when I will have time.


    jessicana
    Participant

    @jessicana

    @shpitzyl
    I changed the related styles in my theme and in the “js”. I am pretty sure I miss something!
    Even when I changed overflow to fixed inside #whats-new-option I inspect it again and find it auto.


    shpitzyl
    Participant

    @shpitzyl

    If you change overflow to fixed, it should stay fixed when inspecting it. It is obvious that you are doing something wrong.

    Are you using a child theme?
    Are you making the changes inside your theme’s style.css or inside buddypress.css?
    If you are using buddypress.css and using a child theme, where are you placing that file?


    jessicana
    Participant

    @jessicana

    @shpitzyl

    Sorry for the delay. Thank you very much. I am using a child theme and I am placing the changes inside my child theme custom CSS area. Other changes were applied but this one was not because obviously something else is overriding this change. I will do this again now and see how things work and I will post here.

    Thanks


    jessicana
    Participant

    @jessicana

    Well, I tried and it didn’t work. I can see what I added to the CSS when I inspect an element and I see the following:

    1) I can see the code I added but it’s strikedout:

    #buddypress #whats-new-options {
    overflow: fixed;
    height: 60;
    }

    Check this picture: http://imgur.com/LqsVbbX

    2) I can see that the original code is still there and is still valid:

    #buddypress #whats-new-options {
    overflow: auto;
    height: 0;
    }

    3) There is a tic beside the [overflow: auto;], when I remove that tick using inspect element everything works just perfect.

    4) I added to the child theme directory [js][/js] folder and inside that folder I added [buddypress.js] file and I adjusted the height to 60 instead of 20 and 40 for them all inside that buddypress.js.

    This didn’t work because I miss from where the [overflow: auto;] is reading their auto and why I can’t change it to fix.

    The 60 is just a hypothetical number to see if things work but things are not working.

    Thanks

Viewing 22 replies - 1 through 22 (of 22 total)
  • The topic ‘Styling BuddyPress’ is closed to new replies.
Skip to toolbar