Views pages do not display the views title in Bootstrap theme.

Changing the theme to bartik the title is shown.

I tried to find out the reason why bootstrap does not display the title of views pages:

views-view.html.twig contains:

  {% if title %}
    {{ title }}
  {% endif %}

But the title seems to be empty. Why?
Please help, thank you.

Comments

drupalfan2 created an issue. See original summary.

drupalfan2’s picture

Priority: Normal » Major

You can reproduce it like this:

- Install Bootstrap theme
- Make a subtheme using starterkits/less oder starterkits/sass .
- Install subtheme and set as default
- activate view '/archive' and visit the views page localhost/archive
- YOU CAN'T SEE ANY VIEWS TITLE!
- change theme to Bartik or to Bootstrap
- the views title appears -> The problem is only within the Bootstrap subthemes -> do not render page title on views pages.

Please help to find solve this issue.

Bootstrap theme uses it's onw page title? Maybe this is the reason for this bug.

drupalfan2’s picture

Maybe this is a core problem (see related issues).

markhalliwell’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Closed (cannot reproduce)

As you can see on https://tag1consulting.com/blog (a views page), the title works just fine.

I suspect that the block for the page title isn't properly configured for you theme (which is why it's not showing up).

Regardless, this is a site specific/customization issue, not an issue with the code.

drupalfan2’s picture

Thank you for your answer.

Yes, the title works fine. This sentence is correct also for Bootstrap theme. But I did say something else, the whole posting is to be noticed.

And in the meantime I found out that this is NOT a Bootstrap theme problem but a major core problem in Drupal 8. See the related issues link.

drupalfan2’s picture

It is not true, that this cannot be reproduced.

Test it out a simplytest.me . You need about 2 minutes to test and reproduce it.

So please change status from "Closed (cannot reproduce)" to another status, because it is very easy to reproduce it.

markhalliwell’s picture

Status: Closed (cannot reproduce) » Closed (works as designed)

Fine, it works as designed. You're setting block visibility conditions that aren't being met. That isn't a bug.

tfladro’s picture

I don't know for is this related but in my case i had "page title" disabled in "block layout". As a result the title was only showing on the "teaser" but not on the "full content". As soon as I enable the "page title" all titles showed up.
Drupal 8. Bootstrap 3.7 subtheme.