• It would be nice to be able to assign an ID to a page to make the CSS easier to read through.

    Is there a way to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter akmiecik

    (@akmiecik)

    or, I could keep a table at the top of my CSS assigning page-id-# to the page slug.

    WordPress already assigns a page id to all the pages on your website.

    Click CTRL+U – Page source
    Then CTRL+F

    Search for <body

    There you’ll a page ID as: page-id-xxxx

    Which is a class not an ID, but it’s unique for every page.

    • This reply was modified 3 years, 10 months ago by chillwp.
    Thread Starter akmiecik

    (@akmiecik)

    nay nay, I’d like to assign my own ID so, when looking at the CSS, I know what page it is. Instead of having to memorize the assigned ID

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Assign ID to page’ is closed to new replies.