This forum is for assistance with theme development.

Help creating page.tpl.php file

Hello!

So I have decided that I would like to create my own theme because I really want to learn how to do it. Yes, I can easily add code to existing themes, but where is the fun in that? I want to create my own custom theme because the layout I wish to have is nothing extreme like the ones I have downloaded.

Drupal 8, Twig & Customs Themes

Hello everyone,

I just downloaded the latest version of Drupal8 (alpha2).

  • I would like to know if there are issues such as Omega and Zen on D8?
  • Are they projects being created above?
  • Do you have any links on how to create custom theme?

Sorry for all the questions & thank you in advance. :)

Can't edit page my edit page

Hi everyone;

I upgrade to drupal 7 then downgraded to 6 manually, and this problema accured.
the problema is about i cant edit my edit page (any page when pressing edit)
I cant edit metatages, when to publish, books....etc (there is an attached picture that show the issue)
I am installing "vertical tabs" modules, i tried uninstalling it, uninstalling other module (including views) tried to upgrade my theme, change it ... whatever i did was a failure

i am suspecting that there might something in the core folder because i uploaded it manually

Custom registration form markup (all forms actually)

I have a custom registration form (D7) which I needed to re-generate the markup according to a designer CSS requirements.

I implemented the following hooks to basically stop any form rendering from occuring all that remains is the
and a

and various hidden 's and submit button.

Now I have started the process of trying to re-render each field according to the new markup -- but I am at a loss. :(

Inside hook_form_alter() I am wanting to iterate each of the visible fields and render each accordingly, something like:

    function corporate_form_alter(&$form, &$form_state, $form_id) {
      
      switch ($form_id) {
        case 'user_register_form':
        {
          $form['field_full_name']['#children'] = '<b>Render field </b>';
          break;
        }
      }
    
    }

This is obviously hardcoded and iwll not work well with a customizable registration for solution. I also want this markup change to occur for all forms, not just registration, so the switch is irrelevant.

element_children($form) -- will return the fields -- but in the case of user registration it returns things like account details (user/pass) and such which I don't want to render on registration.

Custom tpl.php for nodes linked to a specified taxonomy term

Hi!
I'm building a site starting from the NineSixty theme.
Now i'd like to add a different header background, than the main one, in pages linked to some specified taxonomy terms.
I already made it with main taxonomy term pages through creating "page--taxonomy--term--X.tpl.php", but i can't figure out how to make the same work for nodes based on those taxonomy terms.

Editing navigation bar of zen theme

I am absolutely new to drupal theme. I know HTML and CSS but I am blank about php. I was playing with zen theme.

I want to edit default navigation bar. I could change the background color of navigation bar. But it seems that height of the navigation bar is fixed. How to deal with it? How can I control the height of the navigation bar?

I remember when I was learning css, navigation bar used to be of the same height as that of height of text. Please help.

Thank you!

Pages

Subscribe with RSS Subscribe to RSS - Theme development