• This no doubt sounds incredibly ignorant (cos it is!), but so often I see people referring to line numbers in WordPress CSS stylesheets, and mine doesn’t have any – at least, they’re not visible. This has been the case with WP sites I’ve worked on running Twenty Eleven and Twenty Twelve. (Before those themes arrived, I didn’t do any coding – just relied on plugins, or kept my site designs uncustomised).

    Am I not seeing the line numbers because I’m using child themes, perhaps, or is there some way to switch the line number display ON, please?

    Do I get the prize for most basic question of the month?

    Cheers!
    Ross

Viewing 7 replies - 1 through 7 (of 7 total)
  • That’s the easiest way.

    But it’s better to use code editor that has line numbering. Don’t let the name fool you, the code editor is just plain text editor, and it has line numbers.

    Thread Starter RossB

    (@rossb)

    Thanks paulwpxp, but I’m using a child theme. There’s no Developer tab, Browse in Trac etc that I can find. So, how would I get the line numbers displaying in a child theme, pls?

    I’m learning about coding but am far from competent at it so far, and I have many gaps in my knowledge. For example, I don’t understand what you mean when you say it’s better to use a code editor that has line numbering. Do you mean changing the Twenty Twelve Stylesheet for something else? Would be appreciative of some clarification, pls.

    Cheers
    Ross

    Hi RossB – the dashboard editor doesn’t show line numbers…

    When people mention line numbers they are generally using Firebug to look at CSS (the line numbers are shown in Firebug). Or they are viewing files in a plain text editor that has line numbers.

    Thread Starter RossB

    (@rossb)

    Aha, OK – thanks, WPyogi! Past time for me to properly investigate Firebug. I have it, but need to do a tutorial or two to learn how to use it beyond my current haphazard messing around.

    Cheers!

    LOL – there’s good info on Firebug’s website – and yes, definitely spend a bit of time learning how to use it – it will help your CSS life immensely :)!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you want to quickly see the line numbers,
    Right click on your webpage where applicable and select ‘View source’.

    • Go to the theme’s main page.

    Here is the link to the theme’s main page.
    http://wordpress.org/themes/twentytwelve

    • Click on Developer tab.

    and then just follow the rest, you are just a few clicks away.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to display line numbers twenty twelve stylesheet’ is closed to new replies.