I want to add a header and footer to the custom post type archive page. How to do this? When I add a "other block" the this is added but not in full width and the header and footer should be in full width. I use the Divi theme, but archive and single pages are built as requested via Gutenberg editor.
In the past I used views and that worked a lot better, but I understand that it's no longer recommended.
Also, how can i rename the archive url from singular "vacature" to plural "vacatures"? I tried but the url doesn't change...
Is there any documentation that you are following?
a full width header and footer. The loop itself is already designed to have a margin of 300 px on both sides (left and right) on desktop and a very small margin on mobile. All that is done by css code I wrote.
However header and footer of the archive are also set to the same width of the loop and that is not what I want. Footer and header needs to be full width. Also, there is no sidebar added...
Thank you for the clarity. The header and footer are generally controlled by the theme itself. So perhaps this setting needs to be changed in the theme.
Unfortunately I don't have a copy of the Divi theme on hand, however if you can provide me with a copy of the theme or allow me to log in and check the archive to see how best we can achieve this.
I've enabled the private fields for your next response.
how can i rename the archive url from singular "vacature" to plural "vacatures"? I tried but the url doesn't change...
The archive URL is renamed on the Post Type slug, so you will need to edit the CPT in Types and change the slug to the plural version.
I Use the Divi Theme and there is a possibility to use a standard footer as many other themes do (standard WP). However I don't use this as I want freedom in design and so I use standard Divi sections / modules to create a fully custom made footer. In the past I used an injected footer in PHP code for other websites.
Something like this: hidden link
Is it possible to do this and only for the custom post type I created?
Our Content templates can only modify the Content section. For specifics on the header on footer I believe it is possible to achieve but you will perhaps need to get in touch with the divi team for them to best advise you on how to achieve this.
Given that our plugins aren't able to modify these areas then there is not much else I can do on this one.