March 2, 2023 at 10:27 am #1399781
On custom templates the footer does not show up the right way. If you compare https://www.vdhurk.nl/ with https://www.vdhurk.nl/bedrijfswagens/bakwagens/ you can see the difference.
I found out the footer is placed outside of #footer-page and outside of #wrap_all. We use a page for the footer.March 2, 2023 at 7:21 pm #1399879
I can’t see any difference between the two pages you linked to, could you share a screenshot highlighting the problem please?
RikardMarch 7, 2023 at 9:20 am #1400329
When you compare the two footers, you can see the two red triangles are much bigger than they are supposed to be. There is also a border on the top and bottom of the reviews that shouldn’t be there.March 8, 2023 at 5:33 am #1400427
Thank you for the inquiry.
Are you using the Page Content element? In the other page, the color section containing the triangle is outside the footer content container and the ID attribute “klantenaanhetwoord” is not applied to the color section, which might be the reason why the styles of the elements are a bit different. Please check the Custom ID Attribute field in the Advanced > Developer Settings panel of the color section.
IsmaelMarch 8, 2023 at 3:24 pm #1400484
No, we are not using the Page Content element. We are using a page as footer and include it in the template with get_footer(). The ID “klantenaanhetwoord” is not the problem. The problem is the fact that the whole footer is placed outside of the #footer-page and of #wrap_all on the page with the custom template.
“the color section containing the triangle is outside the footer content container”. Yes, that’s what I wrote. But not just the triangles, the whole footer.March 10, 2023 at 3:10 am #1400618
What do you mean by “custom template”? Did you create a copy of the template-builder.php file? The elements will not render properly if they are not properly compiled or if they didn’t run through the template-builder.php file.
IsmaelMarch 13, 2023 at 10:22 am #1401000
By “custom template” I mean we use an archive template for the custom post type. In this template we include the footer with get_footer().March 18, 2023 at 4:07 pm #1401607
Thanks for your patience, it looks like your custom archive template is not built correctly as the footer page content is outside the footer-page div, most likely due to missing closing div’s Please check by replacing your custom archive template with a copy of the default archive template, the structure should be then correct, if so then compare the structure of the two archive templates.
MikeMarch 21, 2023 at 5:05 pm #1401927
That’s not the case. I’ve removed everything from the template except get_header(); and get_footer(); and it still doesn’t work.March 22, 2023 at 1:51 am #1401964
Sorry, that is not what I meant, I assume that your custom archive template is in your child theme, please try replacing your custom archive template with a copy of the default archive template and see if it works then.
MikeMarch 22, 2023 at 9:27 am #1401980
Yes, I’ve tried that too. But it doesn’t make a difference.March 22, 2023 at 11:42 am #1401995
So the footer is correct on standard pages, but not on your CPT, even if you don’t use the custom archive template.
This would point to the error in a different customized file and not in the theme since the standard pages are correct, please include an admin login so we can see what other customizations you have.
MikeMarch 23, 2023 at 4:55 pm #1402173
Details below:March 25, 2023 at 3:07 pm #1402462
Thanks for your patience and the link to your site, I wasn’t able to find a solution for this so I have asked the rest of the team for advice, I will reply back when I get some feedback.
MikeMarch 27, 2023 at 3:54 pm #1402651
- You must be logged in to reply to this topic.