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
Comment #2
drupalfan2 commentedYou 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.
Comment #3
drupalfan2 commentedMaybe this is a core problem (see related issues).
Comment #4
markhalliwellAs 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.
Comment #5
drupalfan2 commentedThank 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.
Comment #6
drupalfan2 commentedIt 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.
Comment #7
markhalliwellFine, it works as designed. You're setting block visibility conditions that aren't being met. That isn't a bug.
Comment #8
tfladro commentedI 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.