Site logo

[Resolved] Edit template “single-copia.php” from the elements configurator

Home Forums Support [Resolved] Edit template “single-copia.php” from the elements configurator

Home Forums Support Edit template “single-copia.php” from the elements configurator

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2573931
    Javier

    Hello, I would like to know if I can edit the copy of a singles.php (for example) that I have created for a new content CPT, from the “ELEMENTS” configuration to be able to create this structure with generateblock blocks, it is possible. I have followed this guide, but I don’t know if I have to edit with code or if there is a possibility of formatting it from “elements” THANKS
    https://docs.generatepress.com/article/setting-up-a-simple-custom-post-type/

    #2574026
    David
    Staff
    Customer Support

    Hi there,

    if you want to create a custom template using the Block Element for your CPT, then don’t bother creating a single-copia.php. Without it WP will use the single.php
    You can then create a Block Element – Content Template for your single post and just set its Display Rules to the Copia Post -> All posts.

    #2574149
    Javier

    Sorry but I don’t understand this note “….the Copy? Post -> All posts.”

    #2574348
    David
    Staff
    Customer Support

    In the Elements Display Rules -> Locations, you can select the post type.
    Eg. if the CPT is called project then you will see Projects -> All Projects

    #2574398
    Javier

    Ah perfect, I understood you, my mistake with the copy, THANKS

    #2574416
    David
    Staff
    Customer Support

    You’re welcome !

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