This forum is for assistance with theme development.

When is a page not a page? % if not page % fails unexpectedly

In trying to solve the problem of two titles appearing on a taxonomy/term/n page, I've discovered that the Twig statement {% if not page %} doesn't behave as I expect.

Does anyone understand why the D8 core taxonomy.module determines that a url like taxonomy/term/n is not a page? The functions involved in taxonomy.module seem to be
function template_preprocess_taxonomy_term(&$variables) together with function taxonomy_term_is_page(Term $term).

How to move main nav menu to right grid [Solved]

I am using Foundation 6 for Drupal 8.

I am attempting to move the "nav#block-testsite-main-menu" to the rightmost grid (12-column grid) in my Header region.

This is what I have pulled together. Is the code to the right of HERE correct? If not, how do I accomplish moving the main menu?

Thanks,

Steve

How to set the Book Navigation active-trail?

Hi I am trying to theme the Active trail in the block navigation of the book module.

As can also be seen on

https://www.drupal.org/docs/user_guide/en/understanding-chapter.html

But for some reason there is no active trail class given to the items.

How do I add it?

Thank you

Add sub-theme - absolute basics

Hi All,

I've made a sub-theme of Bootstrap, but it doesn't have the option of being installed.

I've been tasked to add secure log-ins and database functionality to the website of a small club with a commercially-written Bootstrap-based site. The club has no money to go back to the developers so I got volunteered as the most technical person in the club, though I've never coded in html, css or php; just in C/C++/C#. So a total beginner on a steep learning curve, please correct me where I'm wrong.

Issue with print.less css style

Drupal 7
Bootstrap module installed to sites/all/libraries/bootstrap/

I'm running into an issue editing the CSS style for page printing. When looking at the css through Chrome dev tools it shows a css file: sites/all/libraries/bootstrap/css/less/print.less, however this file does not exist. It is adding a CSS style that I can't unset and I need it changed. When I grep for the css causing me issues it turns up in: sites/all/libraries/bootstrap/bootstrap.min.css.map, but when I edit the CSS in that file it does not change.

solved: Multiple views in a block

Hi

I'm helping person who has made views with content. They work fine. On page layout is needed to add 3 different views in to same block.
Using drupal 8 latest with views,views ui

I am thinking should this be done (can be done) with twig theming or on common drupal GUI ? Via GUI i didn't find solution. If twig theming then could someone add oneline example how to call out block macro with different views macros. I see block names under block edit.

I looked at twig_tweak project and seems it should be possible..

thank you very much in advance,

Pages

Subscribe with RSS Subscribe to RSS - Theme development