If you place a main menu navigation block in a region by checking Display title checkbox,
Title won't be displayed. Works fine because, main menu navigation block does not want the title to be displayed in a page.
My suggestion is to Remove the Display title check box in configuration block for the main menu navigation block. There's is no use to show Display title for main menu navigation block.

Attached Screenshot for better understanding..!!

CommentFileSizeAuthor
Configure block KT.jpeg92.26 KBAaron23

Comments

Aaron23 created an issue. See original summary.

pashupathi nath gajawada’s picture

Assigned: Unassigned » pashupathi nath gajawada

I am looking into this.

dcrocks’s picture

Do you mean, using the Bartik theme, place main menu navigation block in any region and check 'Display Title'? If you do so, the menu title block will be displayed, except if placed in the 'header' region. The latter is an anomaly being worked on elsewhere. In Bartik, 'display title' is off by default for the main menu navigation block when it is placed in its default region. But you can't assume every one will want the block title off for main menu navigation block no matter where it is placed.
This should be closed as 'works as designed'.

Aaron23’s picture

@ dcrocks
Yup using bartik theme yes, it works as per design.Only for the header region display title not used. But, I used Bootstrap theme, where the display title is not working for any region.!!

chi’s picture

Why not just make the block title work as expected?

Aaron23’s picture

YES works as expected...@ chi

Aaron23’s picture

Status: Active » Closed (works as designed)
chi’s picture

Component: base system » block.module
Category: Task » Bug report
Status: Closed (works as designed) » Active
Issue tags: -main menu, -book navigation block

@Aaron23, right now it does not work as designed. We should either hide the option or make it working.

Aaron23’s picture

@Chi, Yes we can make it working, as the other regions also follow the same. i mean we leave it to the user to display or hide the block title

dcrocks’s picture

Component: block.module » Bartik theme

Not sure which version or part of Bootstrap you are using but it does look like it is designed to never render the main menu label. But that is not the way Bartik is designed. You can achieve the same affect for any theme by providing your own version of "block--system-menu-block--main.html.twig", just as Bootstrap does.
Another issue, #2625834: Make the visibility of block titles in the header optional., is working on making all blocks work as expected in Bartik's header region. Any theme can take its own approach to this issue.

Aaron23’s picture

@dcrocks bootstrap 8.x-3.0-beta3 version component(Starterkit (LESS)).

chi’s picture

Component: Bartik theme » block.module

It is not Bartik issue. The label of the block is getting overridden in the template_preprocess_block(). That is true for any other blocks with dynamic title not just for main content. I propose adding another option called "Override label".

dcrocks’s picture

Component: block.module » Bartik theme

@chi look at #2614950: Add option for visually-hidden block titles. And this issue is about Bartik. That is where the failure occurred. Template Preprocess_Block is working as currently designed. If you want to change its behavior you need to open a new issue or tie into the issue I just pointed at.

emma.maria’s picture

Assigned: pashupathi nath gajawada » Unassigned
Status: Active » Closed (works as designed)

If you place a main menu navigation block in a region by checking Display title checkbox,
Title won't be displayed.

This is only true for the header region of Bartik. This issue is being worked on at the moment to remove that from happening - #2625834: Make the visibility of block titles in the header optional.

A user should at all times have complete control of which block titles they would like to hide or show. We shouldn't completely remove that option in Bartik for one particular instance, a user can completely configure block titles how they like.

Bartik does helps on install by setting the block title to not display for the main navigation block in it's default set region.
That is the upper limit of what the theme should provide regarding block title behaviour.

As far as the Bartik component is involved this issue bug works as designed.

However please feel free to reopen this issue within a different component.

dcrocks’s picture

@chi's comments got me to look further into this and I think he has a valid comment. So I created a new issue, #2715687: make templates use 'display_label' in consistent manner, to discuss the implications of the output from template_preprocess_block