• I know that new pages and posts are made from the “Default Template” and I believe to understand this is the page.php file in the theme. However, I have no idea how to make the Default Template not have page title, top bar, sidebar etc turned on.

    I use the OceanWP theme and Elementor.

    What do I need to do to make new posts and pages not have those elements by default?

    Thanks
    Ket

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey
    You can create a new template file (your-page.php) and put it in your theme folder and than on the page editing screen, scroll down to ‘Page Attributes’ section, and you will find a template drop down menu. Clicking on it will allow you to select the template you just created.
    You can code that template file (your-page.php) as you want. ??
    https://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/

    Thread Starter kentsor

    (@kentsor)

    Hi Naveen

    Thanks for the reply. Yes, creating a new template file is easy. The thing I don’t know is how to actually edit it to not have the topbar, page title and side bar.

    The article you post says “You can now continue editing your custom page template file. You can customize it in any way you want. For example, you can remove the sidebar, add custom PHP code, add any other HTML you want.”

    That is the precise part I need guidance for ??

    The page.php in the OceanWP theme has a ocean_display_sidebar that I can uncomment, but I don’t see how the top bar, title etc is controlled. I also use 100% full width

    In the Page/Post settings you have “Default/Enable/Disable” for for example the page title, so I don’t actually think editing the template is the right way. I need to see the “default” value for that, which is “enable”. There must be a configuration somewhere.

    Thanks
    Kent

    • This reply was modified 6 years, 6 months ago by kentsor.

    Hye there
    For this you need to have programming skills to do this ??

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Don’t open duplicate topics and don’t use Everything else WordPress for general support. I’ve moved this to Fixing WordPress.

    You created a topic in the right place, please continue there.

    https://www.ads-software.com/support/topic/controlling-layout-of-page-for-single-posts/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create new page/post without page title, top bar, sidebar etc’ is closed to new replies.