Tagged: page template
-
AuthorPosts
-
September 14, 2021 at 4:32 am #1320818
hello,
I made a custom page template by duplicating the page.php file, adding the template name comment and adding it to my child theme. It works as except that its stuck in box view. The website is full width, but the moment i assign a custom template to a page it gets squished into box view. The template is identical to the page.php file so it should look that same as a standard full width page.
I have tried remaking the page template and using a blank page with enfold. Still turns it into a box
September 15, 2021 at 4:35 am #1320969Hey S-edwards,
Could you post a link to where we can see the problem you are having please?
Best regards,
RikardSeptember 15, 2021 at 4:54 am #1320974Hello,
The website is under construction so its hidden. I have made you a login below.
the problem page is supposed to be full width with a fullscreen slider on it. as you can see its being squished into a box. Its using a template called test template which is identical to the page.php file
September 16, 2021 at 5:03 am #1321127Hi,
Thanks for that. I can access the page on the backend, but not the front, it only shows a coming soon page. Could you upgrade the account you sent to have admin rights please?
Best regards,
RikardSeptember 16, 2021 at 5:18 am #1321130It seems that we are having much larger issues now. Im not sure if its related, but whenever i try to update a page i get errors. At the moment is says
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes) in /public_html/wp-includes/wp-db.php on line 2022
There has been a critical error on this website. Please check your site admin email inbox for instructions.on the front end im getting:
Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /public_html/wp-includes/functions.php on line 5107
even though its only a few dozen lines long.
Also, i had Disable Gutenberg plugin installed, which i have deactivated along with all the other plugins. However the page backend is still using defalt wordpress editor andnot Guttenberg. I have no idea whats going on or how to fix it
September 21, 2021 at 2:15 pm #1321768Hi,
Thank you for the info.
Did you try to increase the PHP memory limit to 512MB? Does it work correctly when you temporarily disable the page.php modification? Please post the content of the page.php file so that we could test it on our installation.
To learn more about how to increase the memory limit, please check the following article.
// https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
We were not able to check the site because the account above does not have admin rights. Please adjust the user role.
Best regards,
IsmaelSeptember 22, 2021 at 1:10 am #1321832thanks Ismael it looks like that fixed the error.
Also i have changed the user role to admin for you.
thanks
September 24, 2021 at 5:57 am #1322105Hi,
Thank you for the update.
We modified the “test template” a bit and removed the “container” element, which limits the dimension of the slider to a certain width. The page or the slider is now full width.
Best regards,
IsmaelSeptember 27, 2021 at 12:15 am #1322390that’s interesting thanks. So i suppose this is something i will always need to do in the future when making a new template?
September 27, 2021 at 4:56 am #1322406Hi,
You do not have to do the modification again because it was directly done in the template file (test template). We just removed the following container.
<div class="container"> // content here</div> <!-- close .container -->
Thank you for your patience.
Best regards,
IsmaelSeptember 27, 2021 at 8:17 am #1322416ok thank you for your help
September 28, 2021 at 4:28 am #1322554Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardSeptember 28, 2021 at 6:00 am #1322569You can close it thanks
September 29, 2021 at 5:16 am #1322705 -
AuthorPosts
- The topic ‘custom page template not using full width’ is closed to new replies.