Styling wordpress formats in Prose

Community Forums Forums General Discussion Styling wordpress formats in Prose

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  rfmeier 1 year, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43995

    jonbuscall
    Participant
    Post count: 5

    I see that post formats are showing up in Prose when composing a post; however, I can’t see where to style them with CSS:

    I’ve tried adding, for example, the following in the Custom CSS  but it doesn’t get picked up:

    .format-audio,
    {
    	margin: 0 0 20px;
    	padding: 0 0 10px;
    }
    
    Aren't posts included in the styling ? 
    
    Any help would be greatly appreciated.

    #44002

    rfmeier
    Participant
    Post count: 597

    Hello,

    Make sure your the css rules you are creating are not getting overrode by other rules.  Do you have a link where these rules are not being applied properly?


    #44007

    jonbuscall
    Participant
    Post count: 5

    Hi,

    A test post is here: http://dev.jonbuscall.com/resources-box/

    It’s set as an audio format.

    And I’ve put this code in Custom CSS in Prose

    .format-audio,
    {
    {background-color:#b0c4de;}
    }


    #44012

    rfmeier
    Participant
    Post count: 597

    Within the Chrome inspector, I applied the following css rules;

    [css]
    /* for single page post format audio */
    .single .format-audio {
    background: #B0C4DE;
    }[/css]
    [css]
    /* for global post format audio */
    .format-audio {
    background: #B0C4DE;
    }[/css]

    I noticed there are some .post background styling around line ~1156.  Make sure these are applied after that to avoid previous styles overriding the .format-aduio styling.

    Try that and let me know how it turns out.


    #44056

    jonbuscall
    Participant
    Post count: 5
    #44057

    rfmeier
    Participant
    Post count: 597

    You are welcome.  I am glad I could help.


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.