Archived topic
Edit template "single-copia.php" from the elements configurator
5 replies · Started by Javier on March 20, 2023
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/
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.
Sorry but I don't understand this note "....the Copy? Post -> All posts."
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
Ah perfect, I understood you, my mistake with the copy, THANKS
You're welcome !