• Resolved conciseac

    (@conciseac)


    Hi, I am playing around with OceanWP and it seems awesome.

    I need to create some customized page templates – can you talk me through or show me how that can be done?

    Traditionally I’d just overwrite page.php and call it example-page.php and that would create a template that I could insert PHP into.

    How is the above achieved in Ocean WP? I notice that there is a folder called ‘templates’ – is that where we can place our own templates.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, to create a page template, you can indeed copy the page.php file, then add your page in a “templates” folder inside your child theme, and add this code at the top of the page:

    <?php
    /**
     * Template Name: My Custom Page Template
     *
     * @package OceanWP WordPress theme
     */ ?>

    So WordPress will know it is a page template.

    Thread Starter conciseac

    (@conciseac)

    Thank you for your help and thank you for making this theme!

    Theme Author oceanwp

    (@oceanwp)

    You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question on creating page templates pls’ is closed to new replies.