This forum is for assistance with theme development.

Giving exposed filters their own class?

I'm using better exposed filters in my view with a Gmap format. Each exposed filter has the exact same class name associated with it. Usually "panel-heading." I thought I could manipulate this heading with some custom CSS however I've come to find out that there are other instances of panel-heading across the website. So the panel-heading class is being generated.

Custom global Twig variables

Hello!

How i can to add own global vars for using in twig templates?
I don't know how to use this example snippets:

$path = 'path/to/templates';
$loader = new \Twig_Loader_Filesystem($path);
$twig = new \Twig_Environment($loader);
$twig->addGlobal('my_var_name', 'my value');

or

Adding Region header_right

I want to have my logo on the left of the header section and the main navigation to the right. I am using the Foundation 6 framework with its associated grid. www.debitsandcredits.com

I have determined that I need to create a header_left and a header_right in place of the full header section. I was able to create those regions in my info.yml file.

Where I am confused is where do I change the header to header_left and then add a div for the header_right in the page.html.twig. Here is the relevant section.

How to check if an article tag has certain value?

How to check if an article tag has certain value in twig template?

Login page not working with second theme

Hi,

i'm trying to create a login-page that doesn't use the default theme.
I created a second theme that i enable trough the 'page theme' module to show the user/login page.
while customizing this page i used the page.tpl.php, not a template.

The login form does work however if i use the default theme with a template page user-login.tpl.php.
But this is not what i want, because it calls up the header, footer, etc... of the default theme.

How To Overlay Text On An Image in Drupal 7

How To Overlay Text On An Image in Drupal 7 without views... for example, I want to add a text on my about us image. where it is placed in a home page in a footer section. When I hover on about us image I want to display something text. how can I achieve that in drupal7? please do a favour... thanks in advance

Pages

Subscribe with RSS Subscribe to RSS - Theme development