Remove landmark header in custom post types

Hi, I am using the Learndash plugin and it has created a custom post to create all the course pages, however the x-header-landmark shows ‘the blog’ and breadcrumbs on it.

I was thinking of just hiding the x-header-landmark using CSS for these custom post types only, how would I do that in the functions.php file in my child theme?

Thanks

Hi There,

Please add the following CSS under Theme Options > CSS:

.post-type-archive-sfwd-courses .x-header-landmark,
.post-type-archive-sfwd-lessons .x-header-landmark,
.post-type-archive-sfwd-quiz .x-header-landmark, 
.post-type-archive-sfwd-topic .x-header-landmark, 
.post-type-archive-sfwd-certificates .x-header-landmark {
	display: none;
}

Hope it helps :slight_smile:

hi @thai unfortunately that didn’t work. I tried adding it into the CSS for the child theme as well.

Hi William,

In that case, could you please provide us with some sample pages with that custom posts so that we can look into your issue further.

Thanks!

Sure thing:

https://migrationguide.co.uk/courses/intake-1-engineers-australia/ (and any links on the right side)

I’ve also sent login details in a secure note.

Hi William,

I went to your website and add the CSS code below to X > Theme Options > CSS:

.sfwd-courses-template-default .x-header-landmark,
.sfwd-lessons-template-default .x-header-landmark,
.sfwd-quiz-template-default .x-header-landmark,
.sfwd-topic-template-default .x-header-landmark,
.sfwd-certificates-template-default .x-header-landmark {
    display: none;
}

Now the landmark header section is hidden on all Lerandash pages.

Thank you.

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