Remove Portfolio Title

Hi,

I’m trying to remove the title from a single portfolio post. I’ve tried the following CSS, but neither has worked. I’ve also checked and it’s not a caching issue. Can you please advise?

.single-x-portfolio .x-header-landmark {
display: none;
}

and I’ve tried

.single-x-portfolio .x-header-landmark {
display: none !important;
}

Alternatively, I’ve tried to format the current title with intermittent success. I’d like to change the font to Alfa Slab One (which I’m using in other areas of my site). I added this CSS

h1.entry-title.entry-title-portfolio {
color: #333333;
font-family: ‘Alfa Slab One’ !important;
font-size: 3em;
letter-spacing: .07em;

}

Which displayed correctly in the builder, but then displayed as a boring serif font when I viewed the page. Then I refreshed the builder and it changed to the boring serif as well. Is there a way to update the font for just the portfolio title (not all h1 tags across the site)?

Lastly, how can I remove just the date from the meta data?

Thanks,
Ashley

Hi Ashley,

Your code should work, it is most likely that you have a syntax error in your css code.

You can try pasting your entire css code on the link below to check.

http://csslint.net/

If that doesn’t help, please provide us the exact url of your portfolio page so we can take a closer look.

Thanks

Nope. Not working. No errors showing csslint.

I’ve added the CSS in the Global CSS as I want it to apply to all portfolio post pages. Here is a test page

https://tin100.com/directory/test-smythson/

The title is displaying in a serif font rather than the standard h1 font (Proxima nova), but it isn’t Alfa Slab One.

Can you please advise?

Also, how do I remove the date from the Portfolio meta?

Thanks,
Ashley

Hi Ashley,

To remove the portfolio title, please try with this CSS code instead:

.single-x-portfolio .entry-title-portfolio {
    display: none;
}

To remove the date in post meta, please add this CSS:

.single-x-portfolio .p-meta span:nth-child(2) {
    display: none;
}

How did you add the Alfa Slab One? I couldn’t it loading from single portfolio page.

Regards!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.