I'm in the process of writing a new theme for a community site I'm working on.
At the moment, I have a custom user.html.twig which contains layout HTML and twig elements. I also have a comment.html.twig which contains layout HTML and twig elements.
The problem I'm having is that on a page with comments, when I try and print the {{ user_picture }} it prints the entire user.html.twig - HTML and all.
I've searched for information about theming user profiles (and maybe user.html.twig isn't the right way), and cannot find anything substantial to help.
Have tried to manage the sub-theme working for 3 themes I use for my sites. The only working sub-theme is for Bootstrap theme two other used 2 days with no results.
For me it seems the original theme has to be prepared for sub-theming.
I am right ?
The other issue is I have found no deep enough tutorial on what files has to be defined for simplest sub-theme. In most cases it seems you have to copy most of the original files.
My understanding is just info file should be enough ... but is not.
Hello. I'm trying to sort the same kind of content into two views on the same page. It's an e-learning courses list and I want to show the current month classes on a top row (which I used a bootstrap grid) and past months below as a list. I'm not expert on Drupal so I just need some enlightening on how to display them
I have just started to dive into drupal as I was recently given a drupal site to maintain.
The drupal version is 7.56 and the dynamic part of the front end is built using angularjs 1.3.x.
I was trying to get an idea of the tpl.php files composing the web pages using devel_themer module but I get WSOD when the module is enabled.
Then, discovered the theme_debug variable which displays information directly in the mark up, but it works only in admin mode when editing the node whereas all the info disappears when viewing the node.
My name is sajjad m currently using cube cart in my e-commerce website my site is shoppingbag.pk Now i need to convert my theme is Drupal is that possible to make safe e-commerce website in Drupal... ?