Hi 🙂
I'm new to custom WordPress archives, and I'm hitting a wall with design and content, is there any way to get more control over the "page"?
Like, in a content template, I can control content/design before, after and around the dynamic content.
In the archive, it seems I can't really control anything but the post output. What if I wanted it to be more like a page, with the archive as just some of the content?
May be this project is driving me mad.
My archive is here hidden link
Thank you
Lykke
Hello,
You are right, Views WordPress Archive works in the content area of archive page, it does not work in other parts(Header, footer and sidebar).
The other parts are controlled by your theme file, in most theme, for example 2019 theme, you can try these:
1) You can edit theme file "archive.php"
2) Find and remove those parts you don't want.
If it is archive page of custom post types "my-cpt", you can copy theme file "archive.php", and save it as "archive-my-cpt.php", and customize it manually.
See WordPress document:
https://developer.wordpress.org/themes/basics/template-files/#common-wordpress-template-files
archive-{post-type}.php
The archive post type template is used when visitors request a custom post type archive. For example, archive-books.php would be used for displaying an archive of posts from the custom post type named books. The archive.php template file is used if the archive-{post-type}.php is not present.