Custom Post Types - How to inherit styles

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?"

Custom Post Types - How to inherit styles

Postby mrmat » 30 Apr 2012, 06:50

Hi there,

I know sayontan is currently working on CTP support for Suffusion, which is lovely.

But for now, is there any way of my using a Suffusion skin in a CTP? I'm sure it's really obvious, I just don't know how.

At the moment, posts with a custom type are showing in the Suffusion theme (and with correct header, widgets, sidebar, menus, etc.) but the post shows without the white background, border, etc.

I have installed the latest beta of Suffusion.
mrmat
 
Posts: 18
Joined: 15 Sep 2011, 05:09

Re: Custom Post Types - How to inherit styles

Postby mrmat » 30 Apr 2012, 07:43

Having figure it out, thought I'd post here in case it helps others;

In a child theme, simply added CSS class definitions for the post type i.e. pull from the existing styles for posts, then add styles for custom type:

e.g. existing style:

.post {
border: 1px solid #c0c0c0;
background: #FFF;
padding: 25px 15px 1em 15px;
clear: both;
overflow: hidden;
margin-bottom: 10px;
}

... add for custom types:

.reviews {
border: 1px solid #c0c0c0;
background: #FFF;
padding: 25px 15px 1em 15px;
clear: both;
overflow: hidden;
margin-bottom: 10px;
}
mrmat
 
Posts: 18
Joined: 15 Sep 2011, 05:09


Return to Support Requests

Who is online

Users browsing this forum: Tonsensuche and 4 guests