[Resolved] Post Title ID

Home Forums Support [Resolved] Post Title ID

Home Forums Support Post Title ID

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1303439
    FunkyCss

    Hallo,

    I want to add an ID in the Post Title so i can add some JS features , is possible to give an id somehow ?

    #1303489
    David
    Staff
    Customer Support

    Hi there,

    Is this for the Single Post or the Archives ? And will the ID be the same for all posts ?

    #1303647
    FunkyCss

    Hi David ,

    The id is for the Single Post Title – i see the class is “entry-title” .

    #1303693
    David
    Staff
    Customer Support

    You would have to use a Child Theme and make a copy of:

    content-single.php

    and edit this line to include the ID:

    https://github.com/tomusborne/generatepress/blob/6933da4f9a85e183bcf8485836339043dfc4a650/content-single.php#L36

    Alternatively could you target the entry-title class instead ?

    #1324704
    FunkyCss

    Thank you David i changed the Template .

    #1324880
    David
    Staff
    Customer Support

    Glad to hear that.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.