This forum is for assistance with theme development.

Captcha image very large on Octavia/Bulma template

Hi, I have just installed and enabled captcha and captcha image, but the image is larger then the 288px. See here for an example.

https://rootsd936.fred-baltus.nl/contact

<img data-drupal-selector="edit-captcha-image" src="/image-captcha-generate/51/1645962877" alt="Beeld-CAPTCHA" title="Beeld-CAPTCHA" loading="lazy" typeof="foaf:Image" width="288" height="72">

What must or can i do to get it in control and have the measures in as in the code?

Content with columns of different size in a row that repeat the cycle

Hello everyone I’m new in drupal and I love it. I should create a slider with columns of different size in a row, like this theme. https://preview.colorlib.com/theme/foodeiblog/. The slide should contain the last recipes inserted. The problem is in the different sizes and and that must be repeated.

how to override drupal.autocomplete jquery position?

Hi

The module is calling drupal.autocomplete.

I've tried to debug what this calls and it looks like its the autocomplete.js within the core jquery.ui folder.

This is positioning a div as absolute then using offset to make the div look as though it is a dropdown on the autocomplete form element.

As the position is being set through jquery it can't be overridden in CSS.

Do I just create a custom jquery function to alter the offset position.
Or is there a drupal specific way of overridding the offset?

[SOLVED] Override/remove Layout Builder layouts from theme

I use my custom layout files for display.

However, in the Manage Display settings all Layout Builder templates/layouts also show up under various options.

Is there any way to disable them altogether in themename.layouts.yml?

I can't possible delete them since those are core files.

Slightly change the theme in Drupal 7.

Slightly change the theme in Drupal 7.
To do this, you need to completely copy the entire Theme? Or is it enough to copy the modified files?

This should be a separate theme

Thanks

Need a direction on code

I have just moved from D7 to D8/9.

I was using the following in my template.php for a pager styling.

This does not seem to work. It am getting an error.

/**
 * Pager styling
 */
function themename_preprocess_pager(&$variables, $hook) {
  if ($variables['quantity'] > 5) $variables['quantity'] = 5;
  $variables['tags'][0] = 'First';
  $variables['tags'][1] = 'Previous';
  $variables['tags'][3] = 'Next';
  $variables['tags'][4] = 'Last';
}

Error message is:

Pages

Subscribe with RSS Subscribe to RSS - Theme development