This forum is for assistance with theme development.

Same block in two places; how to use different templates?

I have put main navigation to two different areas. In area A the blocks shows only level 1 menu items and on area B it shows from level 2 to N. Now I would like to use different twig template for these two blocks but it seems that they both just use the same template. Is there any way to make two separate templates or even identify these two blocks so that I could make some if-else to the template file?

responsive theme

Hi All
How Can I responsive Below Site Theme?
[Possibly spam link removed]

Wondering How to Change the Color of Footer Links and Titles

Hi all! May sound like a silly Question, but I can't seem to figure out how to change the color of links just at the bottom of this page to a yellow:

http://www.saintbarnabas.us/

As in:

Latest News (YELLOW)

Lenten Program and Dinner
(YELLOW)--ONLY THE TITLE, FOR EXAMPLE Lenten Program and Dinner

Assign a class if fields are not filled (default value)

First time using default value in node text fields (not in a form) and first time i need to assign a custom class if text fields is not filled.
I searched around the web but i have not found anything about this issue.

It may made, in alternative way, in a view?

Could you help me ?

Only "Read more” link to be shown in node teaser

How can I show only "read more" link just in node teaser, and remove or unset other links like "add new comments" or "2 Comments" at the end of a node teaser?

How can show node Hits (statistics) in drupal 8 specific place?

How can I show node Hits (statistics_counter) in Drupal 8 in specific place?
I want to show user hits of a node (article) in submitted area rather than the end of a node in node links area? I do this already in drupal 7 with this code:
<?php print (int) $content['links']['statistics']['#links']['statistics_counter']['title']; ?> in node.tpl.php file
but i want to know how to convert this code to drupal 8 version.

Pages

Subscribe with RSS Subscribe to RSS - Theme development