Site logo

Archived topic

File templates (archives) and page templates

5 replies · Started by Alberto on September 29, 2017

Viewing posts 1–6 of 6

Hello.
I must develop a website where I must use custom post types and custom fields. The goal is that in the frontend I can display the information provided (in the backend) with a file template (archive) designed by me and with a page template also designed by me.

I love the Generatepress + Elementor combination to build my websites, so I wanted to ask you what you think is the best option to create both the files templates (archives) and the page templates.

Thanks in advance!

Hello Tom!

Tanks a lot for your suggestion!, as you say is very useful.

Regarding GeneratePress theme, I'm working with a child theme and I want a single use template so, I suppose I must create a file starting from... both your page.php and your content-page.php files?, (is that the better choice?) and rename them as page-{slug}.php and content-page-{slug}.php?

What about archives?, Must I start from archive.php?

BTW do you use some kind of tool for making the templates or you just code directly?

Thanks a lot, Tom!

Alberto.

Exactly - you got it :)

I use Atom, which is a file editor built by GitHub.

Hi Tom!

Ok.
Thanks a lot!

You're welcome! :)

This archived topic is closed to new replies.