• 0
Sign in to follow this  
Followers 0

Add category with different modifications that other categories


Question

Posted · Report post

Goal: I would like to add a category for “Press Releases” so my press releases can be posts, rather than linked Google Docs.

 

Problems:

 

I would like my post date to show in the Press Releases category, but not my service area categories.

Service area category -> http://highlandscsb.org/category/outpatient/

I know this will require modification of the already-modified CSS…I just don’t know how to adapt the CSS to exclude one category.

 

I would like my Press Release category to have a secondary navigation just like the other pages in my Newsroom. Is this possible?

Current Press Releases page with secondary nav -> http://highlandscsb.org/pressreleases/

 

Please advise. Will email moderator if necessary.

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

I would imagine the best way to make press releases is to create a custom post type and customize the layout of posts to include typical information for press releases.  This plugin may help you, though I haven't tested it.  It would assist in creating and displaying custom fields for that taxonomy (category). http://wordpress.org/plugins/types/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Okay, thank you. I will look into that. What about the secondary navigation?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You can just add the Simple Nav section to your Press Release page and select your menu.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Press Releases will be a category, not a page. Am I able to add a Simple Nav section to only one category and not all of them? How do I do that?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there, applying to the category template will apply to all category pages. You could use css to hide/display depending on the category page.

 

For example, after placing into the layout on the category page, set simple nav not to display sitewide. Then using css, set it to display on one particular page you want, something like the below

 

#simple_navluxwi0 {display:none;}

 

then

.category-my-new-category #simple_navluxwi0 {display:block;}

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

What you said makes sense. Thank you. I know what I need to do, just not HOW to do it. Can you help with the CSS?
 
I added the simple nav and the banners sections to the Category template. I then placed a variation of your code into my site but I did it wrong...
 
#simple_navluxwi0 {display:none;}
.category-press-releases #simple_navluxwi0 {display:block;}
 
As you can see, I replaced .category-my-new-category with .category-pressreleases and it did not work (pressreleases is the slug so I assumed...) and then I tried .category-press-releases with no avail.
 
  1. What do I need to put in the CSS so that the "simple nav" and "banners" sections are visible in the Press Releases category and hidden in the others?
  2. What do I need to put in the CSS so that the "content box" section is shown in all categories EXCEPT the Press Releases category?
 
Press Releases Category (accessible through direct link): http://highlandscsb.org/category/pressreleases/
Outpatient Services Category (accessible on live site): http://highlandscsb.org/category/outpatient/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

  1. What do I need to put in the CSS so that the "simple nav" and "banners" sections are visible in the Press Releases category and hidden in the others?
  2. What do I need to put in the CSS so that the "content box" section is shown in all categories EXCEPT the Press Releases category?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

strapanese

At this moment in time, you will need to use CSS to achieve this as far as I know. However, there is a issue on our issue tracker that will make this easier when it has been fixed. This means that you will be able to (if implemented) to have different category templates.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Okay, in the mean time, is there someone who can help me figure out how to structure and code my CSS to achieve my desired results?

  1. What do I need to put in the CSS so that the "simple nav" and "banners" sections are visible in the Press Releases category and hidden in the others?
  2. What do I need to put in the CSS so that the "content box" section is shown in all categories EXCEPT the Press Releases category?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0