This forum is for assistance with theme development.

display users

can anyone help me.
I am using drupal 7.41 and I need to count unregistered online users numbers.
I searched in the forum but no solution

Thanks ...

Clean up Header (meta and ref)

Does someone have an idea how to get rid of all this link rel stuff in the header of drupal 8?

i am talking about this stuff:

I have searched a long time but could not find a solution. I just found the following, but that does not work ;-(

Bootstrap theme: header (solved)

Hi there,

I created a subtheme for my bootstrap theme and added a new container for a header image.
Unfortunately, the width of this cointainer doesn't fit to the width of the other containers, like the navbar.
I've tried to add "margin-right: 30px" to fix the overlapping, but that didn't work.

Note about switching to PHP 5.6 for twig users

When switching an existing D8 site from 5.5 to 5.6, it’s necessary to clear cache, because the compiled Twig files will all be incompatible (having been compiled under 5.5).
These files live in /sites/default/files/php/twig

If you switch an existing D8 site to 5.6, unless your site’s in dev mode, you’re going to get a 500 error on page load, and of course you won’t be able to get to your Performance page to clear cache from the admin interface; so use drush and do drush cache-rebuild
Worked for me, anyway.

Drupal 7 Views with custom template exposed filters doesn't appear!

I have a view and customize it with a template named views-view-fields--myviewname--page-list.tpl.php. My problem is that exposed filters doesn't showing when loading the page. But in preview in view editing screen showing as expected.
And I try drupal default theme "Bartik " and exposed filters appears and worked perfectly. Is there a solution about this issue?

Thanks in advance

Loading multiple image for a node in custom block using db query in Drupal 8

Hello Dear Experts,
I am new in Drupal 8 so Could someone please help me how to write a query that can give me multiple images urls for a node in Drupal 8. Then I want to send it to a twig theme to style them.

here is a part of my code that i have written so maybe someone can help me to modify it:

$db = \Drupal::database();

Pages

Subscribe with RSS Subscribe to RSS - Theme development