Support

Account

Home Forums General Issues Page ID’s

Solving

Page ID’s

  • I want to give the pages on my WordPress site ID’s. Most of them will simply mirror the URL (slug). For example, the page mysite/contact would display this:
    <body id=”contact”

    Someone told me I can accomplish that with the ACF plugin. Is this true?

    If so, can someone give me step-by-step instructions on how to do that? I’ve been playing around with the settings, and I don’t have a clue what I’m doing.

    Thanks!

  • I can accomplish that with the ACF plugin? Your question will be on vahan 4 i Have Looked This At Blog You can check on there web if you want to know then must visit

  • ACF is not required for this, but you could use it for a custom ID value. In either case you would just create a body_class filter, see https://developer.wordpress.org/reference/hooks/body_class/

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

You must be logged in to reply to this topic.