Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #916149

    Hey,

    I followed the instructions at https://kriesi.at/documentation/enfold/using-a-child-theme/ to set up a child theme, then imported the settings, and the main website (home page, blog, etc) works fine.

    However when I try creating a page template, it just shows a blank white page and isn’t displaying the code within the template correctly. I’m able to select the page template in the drop-down menu when editing the page within WP Admin, but when I publish the page, it just comes up without the HTML code being processed. I’m also getting a few “ERR_ABORTED” errors in the console, despite the paths to the files being correct.

    See here: https://www.digitalprosperity.com/the-prosperity-formula-new-graphics/ .

    My template file consists of:

    <?php
    /**
     * Template Name: TPF Download Page
     */
    
    get_header(); ?>

    … Then the HTML code I want to display, which at this point is just “testing” text, then this at the end…

    <?php
    get_sidebar();
    get_footer();
    ?>

    Any help?

    Thanks,
    – James.

    #916291

    Hey jamesf1989,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #916365

    Why would it require a lot of time simply to create one page within a child theme? What would I need to do?

    If you could give me a quick outline, I’ll be able to see whether it’s worth hiring someone to do.

    Thanks,
    – James.

    #916838

    Hi,

    I am sorry – I checked it fast and I shouldnt.

    You have been missing the_content();
    so it can load the content of the page.

    Best regards,
    Basilis

    #916865

    Ah never mind, I got it to work by not using the OptimizePress plugin to create the new page, but instead doing it within the WordPress admin area.

    Thanks though – will keep the above in mind for the future.

    Have a great weekend,
    – James.

    #917018

    Hi James,

    Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it, hope you are having a great weekend as well :-)

    Best regards,
    Rikards

    #917129

    Yeah, feel free to close this thread :-)
    Thanks,
    – James.

    #917264

    Hi James,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Child Theme Template Not Displaying?’ is closed to new replies.