Custom Post Field Styling

This topic contains 3 replies, has 2 voices, and was last updated by  Stiofan O’Connor 8 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #249173

    John Gallagher
    Free User
    Post count: 11

    Hi,
    I want to to style some custom post fields when they are displayed on my listing sidebar.

    e.g. Family Name : Browne

    Family name is the field and Browne is the output.
    I just want to style the output, like make it bold.
    I have read and applied code from here – https://wpgeodirectory.com/docs/custom-field-examples/#logo

    It works fine but the problem is that any styling to the output is applied to the field name too. So if I use something simple like

    `/****syling the meta*****/
    .geodir-entry-meta {clear: both;}

    /* Family Name style */

    .geodir_familyname {

    float: left;
    font-weight: 800;

    The output is – Family Name: Browne
    instead of Family name: Browne

    So can I style just the “Browne” ???

    Thanks

    #249244

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi,

    You would have to just set the two separately

    
    
    .geodir_familyname {
    font-weight: bold;
    }
    .geodir_familyname span {
    font-weight: normal;
    }

    Stiofan

    #249294

    John Gallagher
    Free User
    Post count: 11

    Works perfect, thanks Stiofan

    #249590

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount