Viewing 15 replies - 1 through 15 (of 16 total)
  • If I understand you correctly.

    Just create a php file in your theme directly called “pagename-template.php”
    Replacing “pagename” with what you want it to be like “about” or “blank” etc

    In your PHP file – simply put the following at the top of your file in comments:

    /*

    *
    * Template Name: Blank
    *

    */

    Include your header and footer functions and The Loop if you want to use the WSIWIG editor on the “Edit Page” page if need be.

    Then go create a new page in the WordPress Dashboard and you’ll notice a template section under the Page Attributes box on the left with the title “Templates” and a dropdown, you’ll see “Blank” as a selectable item there from now on.

    Happy coding!

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    doesnt work it show template nick in the top as you see

    https://area51.playstationforum.dk/user/nistelroy78

    Did you create a new PHP file?

    Make sure the comment is within the php tags:

    <?php
    
    /*
    
    *
    * Template Name: Blank
    *
    */
    
    //code goes here
    Thread Starter Svend Rugaard

    (@svend-rugaard)

    Yes i did, but i forgot the <?php but still only show white page when i did that

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    you last link shows an ordinary full web page – can you post a direct link to a page using the ‘blank’ page template?

    you will need to include the main codes from header.php and footer.php, possibly including the main wrapper divs;
    example for Twenty Twelve https://www.ads-software.com/support/topic/creating-a-blank-page-template-for-twentyeleven-theme?replies=8
    code example: https://pastebin.com/ZiteZrUX

    what is the exact full code of your page template right now?

    try to enable DEBUG to see if you get error messages – https://codex.www.ads-software.com/Debugging_in_WordPress

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    Because i was trying some other thing – But im a retard to that with codes.

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    now i have pasted the code you link to in Pastebin only black screen

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    But you can see here what i use for my “bbpress” to remove sidebar, but i need a “blank” so any kind of styles isnt present, because i have some issues as you see the ultimate member profile is showing on left site even it should show on the button and it is because of the theme so thinking making a “blank” template page it coudl fix it.

    now i have pasted the code you link to in Pastebin only black screen

    as you are using a different theme, pasting code which is targeted at Twenty Eleven won’t work.

    as any code has to be theme specific, try contacting your theme’s developer for help with your question.

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    yeeah and they say they cant help … really annoying.

    Could you explain what it is you’re trying to do from a functionality point of view on the required page that needs to be blank? Maybe theres another way around this

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    Becauses i am trying just figure out why the Plugin Ultimate Member / AND buddypress are making some kind of “blank” spacces and move the input boxes it is the theme, because if i use another theme it is working correctly so i need to “rule out” any possible CSS or something there can make it look weird..

    Example I have some issue with Gamezone and Ultimate Member, there is something in Gamezone there are making this not showing correctly – look at link here https://area51.ps3geeks.dk/user/svend-rugaard/ – same goes if – they way it is MEANt to bee seing you can see here on my profile on ultimatemember : https://ultimatemember.com/user/svendrugaard/

    Thread Starter Svend Rugaard

    (@svend-rugaard)

    im closing this thread because ThemeFuse wouldnt help me and recommend me to use one of there custom works agency codeable but no one have give a offer on the job. And figure i need to get buddypress / bbpress to work flawless to go to next step in my sites growth.

    So i found anohter theme there is 100 % compatible now i judt need to make figure out how to move all custom posts there is being said invalid post type when im importing them

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Making a "Blank" Template page ?’ is closed to new replies.