Topic RSS
5:50 am
I uses two column wp template (one column for post, one column for side bar), how to install simple-press forum page in one collumn page (wihout side bar).
Well some Wp themes come with a full width page template so that's the first thing to check for.
Failing that it is fairly easy to create a full width page template and if you visit our wiki and click on the FAQ you will find a general tutorial on how to do that. There is also a guide on the WP codex.
1) Create a template.php file and put that in your theme dirctory.
2) You can name the file whatever you want, but including the work FORUM in the filename makes it easier to overview/index your file/folder etc. ie. my-single-collum-template-file.php
3) The "identifier" / "display name" (wich you will use to select wich template for your forum in WP backend -> pages) is the "Template Name" – wich in this download example is: Template Name: One Collum Forum Template
You can rename the Template Name: to anything you like .. just call it something that you see fit.
I cant seem to get the code displayed here, so you can download a ready to go example here and put in your theme directory: http://www.chono.dk/filebox/te…..-forum.zip
Remember to give the DIVs in the file (around php the content) the right ID or Class that complies with your theme … this is usually something like main, padder, or container etc .. just open up your themes index.php file or use Firebug – Firefox (http://getfirebug.com/) to look up the main content ID or Class … lemme know if it works out ^^
What was the problem displaying code please? Were you using the 'code' toolbar button?
Hehe i need to get me some spectacles soon .. that button is TOO small ^^
Here is code:
<?php /* Template Name: One Collum Forum Template */ ?> <?php get_header(); ?> <!-- Content Starts --> <div id="PUT DIV ID HERE" class="PUT CLASS HERE"> <?php the_content(); ?> </div> <!-- Content Ends --> <?php get_footer(); ?>
11:04 am
I follow the tutorial on :
http://wiki.simple-press.com/f…..-template/
I found on my theme style.css :
/*
LAYOUT: One column, no sidebar
DESCRIPTION: One centered column with no sidebar
*/
.one-column #content {
margin: 0 auto;
width: 640px;
}
I changed to :
/*
LAYOUT: One column, no sidebar
DESCRIPTION: One centered column with no sidebar
*/
.one-column #content {
margin: 0 auto;
width: 100%;
}
then I update that file. After that I edit the forum page, change the template atribut to
one column, no side bar template. Then update this page.
I did it as you can see at http://www.asphaltforums.com/forum
Thanks 4U all
Most Users Ever Online: 444
Currently Online: Conrad_Farlow, steve.engelking, jawaulk, irlandes1, joelrob
77 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2626
Members: 7363
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10897
Posts: 79582
Newest Members: Rick Thomas, joelrob, ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22240), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Quote
Offline


Privacy Policy



