Jump to content
Sign in to follow this  
eolic

Hide post title based on categories

Recommended Posts

eolic    0
eolic

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!

 

 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
eolic    0
eolic

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?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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

 

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


Please search our forums, before posting!

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  

  • Similar Content

    • Claudio
      By Claudio+
      I have a problem with the typography settings. I set the H1 class with "font-weight: 300;" (Very thin weight), and "font-size: 50px;" (To have considerable evidence of my problem). Unfortunately, as you can see on the screenshots, those setting don't have any incidence on the site, Infact in the home page editor there is a trial title called "Text test", bold, and 26 px approximatly sized.
      Why the typography settings are not transposed on the site? Where I wrong?


    • Queue-it
      By Queue-it+
      Hi,
      Previous webmaster has made short codes assigned to certain categories. For example: [pl_section section="loops" id="003"]  displays all the Job posts for tech. 
      But where can I assign a short code for a certain category? I can't find where to add the loop ID for the category.
       
      Thank you
       
    • Queue-it
      By Queue-it+
      I've created a new post category "Success stories" with Custom Post type UI. (in order to have a different layout for a different post category - blog post one layout, success stories another layout).
      New category "success stories" are "detached" from all the other posts, so they have a different layout, but the problem is that all of the success stories are also having the same exact content.
      So whenever I edit content (e.g. change body text) on one of success story posts, it also changes the content (body text) for all other Success story category posts. 
       
      Question: Is there a way to retain this separate category with it's own layout, and have a different content for each individual post? I'm using Pagelins templates. 
       Thanks in advance.
    • Queue-it
      By Queue-it+
      Hi,
      Is is possible to have different layouts for different Post categories? We have Blog posts, News posts and Case studies that all are posts, but is it possible to differentiate their layouts?
      So far when I change a post layout it affects all Post type pages. Could it be done somehow with creating a separate template? 
      Examples below
      https://queue-it.com/news/
      https://queue-it.com/blog/
       
    • mzhafzah
      By mzhafzah
      Hello
      I am using DMS 2 theme and I want to create a 2 different links on my website; each link should take you to a different blog post category. Although the process is easy, yet I can not figure out how to give each category page a unique design of its own; Any change I make on any page is applied to the other (I'm aware of the universal elements like the header and footer and I a am not talking about these.)
      Since I am new to wordpress in general, I am not sure if my description is sufficient; apologies if it is not.
      TycoonJé
×