This forum is for assistance with theme development.

Remove novalidate attribute from webform for client side validation

I have installed webform and client side validation extensions on my drupal project. The problem is in the webform's form element novalidate attribute is appearing, which cancels the client side validation.

Form HTML

In webform general settings I have unchecked the disable client side validation:

All dynamic pages always render the same template

Hi,

My environment is Drupal 8.3.7. I encounter a problem that all dynamic pages always render the same template if the user doesn't log in. If the user has logged in, every dynamic page works well. Below is my structure.

/theme/my_theme/templates/abc/path1/page--abc--path1.html.twig
/theme/my_theme/templates/abc/path2/page--abc--path2.html.twig
/theme/my_theme/templates/abc/path3/page--abc--path3.html.twig

Block template is not extending in custom theme

  1. Created a testing twig templates in the same folder.
  2. Written down the code definition of block in testing block template.
  3. Called the extends in the article template for inheriting the testing block template content.
  4. And finally the error is coming "A template that extends another one cannot have a body"

Any Suggestion where am i going wrong.

A Href in .Theme Hosing Site

<?php
<?php

?>
?>

Hey all,

Looking to wrap a set of divs with an a href referring to the resource URL. Doing so currently hoses our entire site. Thoughts?

Problem exposing variables via TWIG node

So I have a content type which is also an Ubercart product.
On my home development site I have made exactly the same content type and have used a TWIG template to layout the variables as I want them with some other divisions I require on the page.
On my production page (on public server) is behaving differently.
The 'label' variable does show though the shirt images do not though they do if I just use the standard node twig file. So the new node layout with the heading appears though no pictures or the add to cart button or attributes selections.

Template overriding not working...

Having twig debug mode enabled; Am trying to override the template file of node type "article"Image 1
I had done the changes and added the file as per theme suggestion in my own custom theme but the changes are not reflecting (it is still taking template file from my base theme); I had rebuild the cache after doing changes.
Only local images are allowed.

Pages

Subscribe with RSS Subscribe to RSS - Theme development