Skip Navigation

[Resolved] Custom WordPress Archive design and extra content

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1316867

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

#1316923

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.