This forum is for assistance with theme development.

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.

What variable or array in Drupal 8 Contain node link Value?

What variable or array in Drupal 8 contain's node links Value like "comment count" , "add new comment" and how can i use or print them in certain place.

Block spacing

Hello brothers and sisters i am working on a project in drupal and almost done with it .I am facing a problem and its when i place block in drupal they are very near to each other what i want to do is to add some space between them how can i do it?? i have added the block class module and gave it a class and applied padding but its applied to the text inside it not to to the whole block??

CSS beginner field collection odd even styling

Hi,

I have a content type with paragraphs made from field collections. Each field collection consists of an image and text. I would like to have the image floating right on odd paragraphs and left on even paragraphs. With trial and error I came up with this css:

#node-82 .field-item.even img {
    float:left;
}

However when I use

Print site_slogan in node.tpl.php

Just that, I need to print inside a node.tpl.php the site slogan separately, apparently is no possible if your not printing it at the page.tpl.php

styling my homepage

Hi everybody!

I am new here and also in drupal. so I have a lot of reading before me...

I would like to change my homepage design, and I would be thankfull if anybody could help me by answering my questoion or linking the forum theread I need to solve my problem.

Pages

Subscribe with RSS Subscribe to RSS - Theme development