Jump to content


Photo

Hide post title based on categories

title categories

Best Answer Danny , 12 April 2013 - 10:45 AM

Yes, as the the category-id is a class not an ID, so it should look like this:

 

.category-213 .post .entry-tile { }

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 12 April 2013 - 09:47 AM

Hi, I've created a category to just link to resources outside of my blog. I would like to hide the title and metabar for this posts in category-213. I'm using Platform Pro 1.6

 

Is it any way to do it just with CSS? Can I also style a border or background for this category only by CSS?

 

Thank you very much!

 

 



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17533 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 12 April 2013 - 10:15 AM

Hi,

 

You can use custom CSS, to hide the Post title and metabar. Todo on a specific category, you will need to use the category-id class, this can be found in your body tag. I recommend using Firebug or your browsers built-in web dev tools and inspect category page which you wish to hide the post title/metabar, then inspect the post title/metabar to find the correct code.

 

You will want to use the display:none; property in your custom CSS.

 

For assistance visit our custom CSS documentation - http://support.pagelines.me/docs/customization/custom-css/



#3 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 12 April 2013 - 10:25 AM

Thanks Danny,

 

I tried adding this on the "custom code" css rules and is not working...

 

#category-213 .entry-title {display: none;}

 

Is it wrong?



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 17533 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 12 April 2013 - 10:45 AM   Best Answer

Yes, as the the category-id is a class not an ID, so it should look like this:

 

.category-213 .post .entry-tile { }



#5 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 12 April 2013 - 10:47 AM

Cool :)

 

Thank you very much!







Also tagged with one or more of these keywords: title, categories