How to turn off breadcrumbs & main menu for specific pages

Posted in: Newspaper
Post count: 26

I’ve seen the enable/disable breadcrumbs globally in the Theme Panel, but is it possible on a page/post basis? Also, I can’t find anything about turning the main menu on/off for pages/posts.

I haven’t dabbled with the page builders much yet and have mostly been using the default Blocks Builder. Are either of these things possible, or does it require additional CSS?

Many thanks!

Post count: 35449

Hi,

If I understand correctly you want to turn of the breadcrumbs & main menu only for specific pages, this can be done using some cloud templates for posts, categories, header, edit theme with tagDiv Composer and remove the menu and breadcrumbs, after that set the template on the posts, categories, header, pages where you do not what to have breadcrumbs and menu.
Also for page you can remove the breadcrumbs using all the page templates except the Page Builder + Page Title -> http://prntscr.com/olu6wz

Thank you!

Post count: 26

Hi Calin,

Thanks for getting back to me. So, this can only be done via tagDiv Composer, is that correct?

I have some pages built using the standard WP Blocks Editor, presumably I can target those pages and simply hide the elements using the following code, or would this cause problems?


.tdc-header-wrap {
  display: none;
}
.td-crumb-container {
  display: none;
}
.td-page-header {
  display: none;
}

Many thanks!

Post count: 35449

Hi,

Yes, this can be done with custom css too, if you have more pages will even be more fast using css.
Create custom code with the browser’s Inspector or the Live CSS Box -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

If you need help with this, just let me know!
Thank you!

Post count: 26

Hi,

Thanks for the feedback.

The code in my reply seems to work fine, but I just created it quickly using the browser’s inspector. Just want to know if I’m targeting the most appropriate classes to get the job done (I like to do things the right way, if possible).

It must be a fairly common thing, so I thought it might be useful to have the correct code (from the source) somewhere in the forum, so others can find it too.

Many thanks!

Post count: 18283

Hello !

Please provide a link to a page / post where you’d like to hide the breadcrumbs and we will check and provide a solution.

Thank you !

Post count: 26

Hi Vlad,

Thanks for jumping in! I’m working locally, so can’t share a link, but I think I’m good with the code I posted. I’ll pop back here if I run into problems…

I just thought as every theme has it’s own structure and naming conventions for key elements, it would be helpful to have the correct/best code snippet available in the forum.

Cheers!

Post count: 18283

Hello !

If it helps, every page/ post /category has an ID wich can be seen using the inspector. You can try and add that so you can target more sepecifically: https://www.screencast.com/t/QEAW3cKE25cj

Thank you !

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.