page template

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

page template

Postby amr » 18 Jan 2010, 20:23

I took your default page template and changed the post area to white.
But I want one page template which would be all black - just as it is in your dark theme. How do I do it? I crerated a black page template, but it doesn't work.
amr
 
Posts: 66
Joined: 09 Dec 2009, 17:17

Re: page template

Postby Connie » 19 Jan 2010, 00:09

This is generally a WordPress Question and you should try to find the answer there at WordPress.org

using different templates for pages
I am not sure if WP supports this.
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Re: page template

Postby amr » 19 Jan 2010, 05:48

yes connie WP does. Suffusion already gives you 4 diferent templates - I just need an additional one for the dark theme
amr
 
Posts: 66
Joined: 09 Dec 2009, 17:17

Re: page template

Postby Connie » 19 Jan 2010, 08:03

Sorry, I was disorientated .... I thought template for post, for pages sure...

excuse me.

You can create your own page template, give it a name and copy it into the themes-folder.

It needs this text on top:
Code: Select all
<?php
/**
 * Template Name: NameOfYourTemplate
 *
 * @package Suffusion
 * @subpackage Templates
 */

get_header();
?>


See here:

http://codex.wordpress.org/Pages

As a starter, you could copy the standard-page-template and give it a different stylesheet with the dark variants
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Re: page template

Postby amr » 19 Jan 2010, 12:37

Hi, did all that and it even shows up in my template menu for pages, but I can't get it to be all black. Urll is here
http://perspectives.apps01.yorku.ca/featured-stories/
amr
 
Posts: 66
Joined: 09 Dec 2009, 17:17

Re: page template

Postby sayontan » 19 Jan 2010, 13:00

You have a lot of problems here:
Code: Select all
    <div id="main-col"; style='background-color: #00000;'>
 style='background-color: #00000;'>
  <div id="content">

              <div class="post fix" id="post-25" style='background-color: #00000;'>

1. There should be no semi-colon after main-col in the first line
2. There are only 5 0's in the color in the first line - there should be 6
3. The second line shouldn't be there - it is wrong, syntactically and otherwise
4. The color again has 5 0's in the last line

Instead of using a new page template you can put this in custom styles:
Code: Select all
#post-26 {
        background-color: #000000;
        color: #ffffff;
}
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: page template

Postby amr » 19 Jan 2010, 13:13

Oh, thanks, the custom style solution did not work but correcting the template did. I have made it work on my other site, but could not here. I know abs nothing about coding, so your help is GREATLY appreciated
amr
 
Posts: 66
Joined: 09 Dec 2009, 17:17

Re: page template

Postby sayontan » 19 Jan 2010, 13:15

My mistake - it should have been #post-25, not #post-26. Basically I used your post ID to provide a custom style for that post alone - this will not apply to anything else.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: page template

Postby amr » 19 Jan 2010, 13:35

thanks again, does it mean I can do it for any post? Great!
I love your theme, as you can see
amr
 
Posts: 66
Joined: 09 Dec 2009, 17:17

Re: page template

Postby sayontan » 19 Jan 2010, 13:39

Yes, basically you can override the default ".post" CSS setting that applies to all posts and pages with an id-specific tag, like "#post-25" or any other such post id. A "." refers to a class and a "#" refers to an id, and id takes precedence over class. You can define custom styles using this approach.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Support Requests

Who is online

Users browsing this forum: abobsemleat, Bing [Bot], Google [Bot] and 6 guests