Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] CSS attributes not possible for BP embended picture


  • Shawn74
    Participant

    @shawn74

    Hello,
    i have latest WP, latest BP and also latest BBP installed and perfectly running..
    The website is: http://www.love4wellness.it (as requested for support)

    as you can see here:
    first

    i modified the CSS of a posted picture to add Radius and borders, with this simple code:
    second

    This code also working perfectly for my avatars and avatars thumbnails, no problem here.

    Menawhile to do that i worked on BuddyPress and BBPress CSS, if i exit outside the forum, coming back to the group root page, the style is not applicable:
    third

    because it refer to standard CSS file of my theme, changing it i change also other theme pictures:
    fourth

    Please there i a way to add CSS style also to BuddyPress embended pictures without touch my theme?

    Thanks a lot for your help…. Stefano

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

  • Shawn74
    Participant

    @shawn74

    I found this solution (i imagine the very basic of CSS know-how):

    Or you can add another stylesheet to your theme directory and load it using conditional tags.

    For example:

    On your function.php

    
    // Replace # with the ID of your custom page
    
    if ( is_page( # ) ) {
    wp_enqueue_style( 'path/to/your/custom/css/file' );
    }
    else wp_enqueue_style( 'path/to/your/original/css/file' );

    This sure should work, i can change the css file only for the Buddy Press’s Groups page ID.
    Unfortunately i have an animated headers and also animeted small GIFs inherit this cahange. I need another solution….

    🙁


    Shawn74
    Participant

    @shawn74

    SOLVED:

    I directly hooked the container:

    .activity-content img{
    background: #ffffff;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    }

    Thanks to all

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] CSS attributes not possible for BP embended picture’ is closed to new replies.
Skip to toolbar