This forum is for assistance with theme development.

[Advice]Junior Drupal Dev attempting custom theme Login and Registration Form.

Hey Guys,

Taking on a new task to improve my theming and overriding skills.

I was given a design for the Login, Registration, User Profile and Password Recovery Pages.

I would appreciate it if someone would guide me on the steps I should take to add/ remove fields, change layout, etc, on those various forms.

I have already used the THEME/MODULE_FORM_form_Id_ALTER() Hook, so I have a basic idea of how this hook works.
I'm not sure if I should be even using this hook for this kind of task but I would appreciate any direction.

The most important question - drupal 10.0.2 theme

Hi, 

there I have a very important question. There is the newest version of Drupal 10.0.2 which use version 8.1 or higher of PHP. 

I have checked many templates/themes from the previous version 9.4.5 etc...

And was very surprised, because many of them are not compatible with the newest Drupal 10.0.2. The problem was not with installation themes, but later with adding modules, composer2, and setup setting from the CMS panel (for example ZIRCON - problem with logo, can not add). In one word themes do not work. 

[Solved] Overrided views exposed filter does not display special chars in select options.

I recently overrided a views exposed filter by converting some textfields to select.

The problem now is html special characters won't display on screen.

E.g

Code
<option>$1,000,000</option>

Expected Display
$1,000,000

Actual Display
1000000

The '$' and ',' is removed..

I have even tried htmlentities() but no luck there.
I even tried adding the html code directly

Anybody has any idea what I should do.

Here is some of the code:

[Solved] Junior Drupal Dev attempting to overide a form - textfields to select

Hi guys,

I'm just looking for guidance on how to make some changes to a form..

A client wants a form with select options only.

The fields that are generated from taxonomies give you the option for a drop down, So I'm good here.
However, a few of the form fields by default are text fields.
I've looked into a module solution but better exposed filters don't have a dropdown option for input fields.

What I have done so far?

HTML Head-Tag manipulation in custom Drupal maintenance page

Dear all,

Is it possible to adapt HTML tags (here: HTML HEAD tags) in a custom maintenance page put in the following directory?

<drupal-dir>/web/themes/custom/<customTemplateTheme>/templates/maintenance-page.html.twig

How to theme a View wrapping it with a class?

Drupal core ships with a View named "Frontpage" that renders the front page. I set it up to post three nodes on the front page.

I want to wrap it is a flex-class like this:

<div class="d-md-flex justify-content-between">
  <div>First node</div>
  <div>Second node</div>
  <div>Third node</div>
</div>

Unfortunately the using "CSS class" under "Advanced" doesn't work, because Views wraps another class between the class added by me and he actual nodes.

Any ideas?

Pages

Subscribe with RSS Subscribe to RSS - Theme development