• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Need CSS Code for list

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Need CSS Code for list

This topic is: resolved

Tagged: css, lists, styling

  • This topic has 4 replies, 2 voices, and was last updated 1 year, 11 months ago by Farasatkhan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 16, 2021 at 11:27 am #503080
    Farasatkhan
    Participant

    I am using Magazine Pro theme, and I am trying to make the numbers of a list become bold.

    1. Sample text
    2. Sample text 2

    This is what I am looking for ^^

    Within the Theme Editor, I edited a small code in the existing code

    (Existing Code)

    ol,
    ul {
    	margin: 0;
    	padding: 0;
    }

    (Edited Code)

    ol,
    ul {
    	margin: 0;
    	padding: 0;
            font-weight: bold;
    }

    But adding font-weight made the entire list bold. So what can I do?

    https://housetobeauty.com/wordpress-resources-at-siteground/
    February 16, 2021 at 12:24 pm #503082
    Anita
    Keymaster

    It's identified in the stylesheet as ::marker. You can use this and change the color. It would change the color on all "markers", i.e., bullets and numbers.

    ::marker {
      color: blue;
    }
    

    Love coffee, chocolate and my Bella!

    February 16, 2021 at 3:51 pm #503084
    Farasatkhan
    Participant

    I am unable to find :marker {

    This is what I see

    ol,
    ul {
    	margin: 0;
    	padding: 0;
    }
    
    mark {
    	background-color: #ddd;
    	color: #000;
    }

    If by marker you mean mark then, I tried adding font-weight: bold; there was no change to the styling of the list (number or bullets).

    February 16, 2021 at 4:42 pm #503085
    Anita
    Keymaster

    You add that to the theme or stylesheet. It's not in there already. Add it to the Additional CSS box.


    Love coffee, chocolate and my Bella!

    February 17, 2021 at 4:28 am #503091
    Farasatkhan
    Participant

    Got it!

    Thanks for your help Anita.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Need CSS Code for list’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble