Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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

    #1320969

    Hey S-edwards,

    Could you post a link to where we can see the problem you are having please?

    Best regards,
    Rikard

    #1320974

    Hello,

    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

    #1321127

    Hi,

    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,
    Rikard

    #1321130

    It 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

    #1321768

    Hi,

    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,
    Ismael

    #1321832

    thanks Ismael it looks like that fixed the error.

    Also i have changed the user role to admin for you.

    thanks

    #1322105

    Hi,

    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,
    Ismael

    #1322390

    that’s interesting thanks. So i suppose this is something i will always need to do in the future when making a new template?

    #1322406

    Hi,

    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,
    Ismael

    #1322416

    ok thank you for your help

    #1322554

    Hi,

    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,
    Rikard

    #1322569

    You can close it thanks

    #1322705

    Hi,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘custom page template not using full width’ is closed to new replies.