This forum is for assistance with theme development.

How to add markup around comment number in teaser links

I am trying to display the number of comments in the node teaser links as a comment bubble with the number only. In order to do this I need to get some markup around the number and the "comments" text, so I can hide the text and display the number inside the icon. I am trying to do this using hook_preprocess_links but I can't figure out how to override the link text do add the markup I need. I've gotten this far:

Printing node label inside field.html.twigh

Hello,

I'm trying to print the node label in my field.html.twig template and in field collection without the span wrapper around it.

i'm trying {{node.label}} but not working

is that can in field or what i can do to print page title , node title inside field ?

create two columns and keep the polaroid frontpage

Hello,

I work on this website www.cafeandbanana.com .

I should create a second column only in the frontpage and add the contents that have a specific category( I use taxonomy) into that column.

I use the DAN theme , and it has a really cool polaroid content display. I wanna keep this and add an extra column. Like here picture.

Slideshow and node navigation as Portfolio

Hello,

I started learning drupal 6months ago and I'm having my first issue and I can't find a correct solution.
In order to avoid influencing I will not explain what I've tried but only what I would like hoping you know how to do it.

So the short version is :

I do not show the contents of my basic page or article

Hello, my english is not good but i have a problem in my visualization in my basic page, article or any content type that created.
I am use a theming custom, but each time I make a content type and save it does not see any of the fields and yes, I have configured the display manage well.
The problem is is related to html.html.twig or i should add other file type tiwg? Please help me.

How to access defined variable in customised block: Drupal 8 Theming

Hi,
In .html.twig file, I can access base_path variable. If I use that variable in customised block, however, it does not work. Do I have to anything to make it available in the block level?
Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development