Making a "Blank" Template page ?
-
Is there someone there can help me to make a BLANK template file form theme
With out Header, footer etc but the styles is still part of if ?
my website is http://www.playstationforum.dk
-
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” etcIn 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!
doesnt work it show template nick in the top as you see
Did you create a new PHP file?
Make sure the comment is within the php tags:
<?php /* * * Template Name: Blank * */ //code goes hereHave you read this. http://codex.wordpress.org/Page_Templates
Yes i did, but i forgot the <?php but still only show white page when i did that
http://area51.playstationforum.dk/account/ – white page.
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://wordpress.org/support/topic/creating-a-blank-page-template-for-twentyeleven-theme?replies=8
code example: http://pastebin.com/ZiteZrUXwhat is the exact full code of your page template right now?
try to enable DEBUG to see if you get error messages – http://codex.wordpress.org/Debugging_in_WordPress
Because i was trying some other thing – But im a retard to that with codes.
now i have pasted the code you link to in Pastebin only black screen
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.
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
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 http://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/
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
The topic ‘Making a "Blank" Template page ?’ is closed to new replies.