WordPress.org

Ready to get started?Download WordPress

Forums

Got my custom fields rocking, but not the format! (6 posts)

  1. matharding
    Member
    Posted 8 years ago #

    Hi, I've got my site

    http://www.oldboysgamingnetwork.co.uk

    And I've made some mods to display a 'currently playing' custom key and value fine.

    Trouble is I just want it to lie left justified like the heading of the post, could somebody point me in the direction of what to edit to change this?

    I know the PHP creates a list tag to display the custom fields, is this what is causing the indent?

    Hope somebody can help.

    p.s. come on England!

  2. Ryan Fitzer
    Member
    Posted 8 years ago #

    Well, England might be busy. But I can help. Looking at your source I found this:
    <li><span class="post-meta-key">Currently Playing:</span> Donkey Konga 2 (Gamecube)</li>

    This means you can create a new CSS class named ".post-meta-key" and style it how you would want.

  3. Ryan Fitzer
    Member
    Posted 8 years ago #

    By the way, your site looks really nice. Is it your own custom theme, or did you alter another?

  4. matharding
    Member
    Posted 8 years ago #

    Hi, thanks for the reply, turns out England were busy but with good reason. I have used the template ChaoticSoul 1.0 by Bryan Veloso, with minor mods, it is indeed a nice theme.

    I had already found the .post-meta-key class in my stylesheet, but since the meta php function creates the

  5. tag no matter what I put in the my stylesheet it still creates an indent - I'm so close but so far!
  6. Ahh you see it take effect above! I repeat..

    creates the <li > tag no matter what I put in the my stylesheet it still creates an indent - I'm so close but so far! < /li>
    '

  • Ryan Fitzer
    Member
    Posted 8 years ago #

    I understand. Then this means to need to write a css rule to style that pesky <ul> element exactly how you want it. An example would be (this will take out the indent):

    .post-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    }

    Good luck. And thanks for the theme info.

  • matharding
    Member
    Posted 8 years ago #

    Great, works sweet now. Cheers :-)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags