This forum is for assistance with theme development.

Checking the field for completeness

I am trying to check the field for completeness and if there is a loaded video in the field, display a small icon on the preview layer. doing so:

<?php if(!empty($fields['field_video'])) echo '<div class="ribbon-wrapper-gold"><div class="ribbon-gold">with video</div></div>'; ?> 

But with video always appears regardless of whether the field_video field is filled or not. What am I doing wrong?

views Unformatted list error

Hi 

i always got this error when i use Unformatted list format in views

i didnt find where is the problem

please help

User error: "attributes" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).

Taxonomy pages

Hello!

how can I edit the taxonomy pages? If I click on a term the resulting pages look not the way they should.

Scroll jump after ajax request

I have a problem with an Ajax view. I have a SearchAPI Block and whenever I change the filters the block reloads and the page scroll jumps randomly. This problem does only appear when the page is short enough. I have another Search API Block at a different page of the same Drupal installation but with more other blocks under that than just the footer.

I do not think that it has anything to do with the settings of my SearchAPI or even the Infinity Scroll Module. I think it happens when the page is not really long and Ajax adds some new DOM Elements.

Generate Press Premium Theme and plugin not updating

Hi,

i have been using generate press premium theme and plugin in my Blog. i have got a problem, as i couldn't update the plugin. Icleared the cache logged out and logged in, still getting the same error. Can  anyone help me sort this out??

Bootstrap - Override timing of menu toggle animation

Using Drupal 8, and customizing a subtheme based on Bootstrap 3.

When I click the mobile menu button (button element with the "navbar-toggle" class), the menu appears, but does it a bit too slowly; I need to reduce that time (or bring it to zero, need to see how it goes, to decide), but am unable to do so.

I've seen that when the button is clicked, the div of the menu

<div id="navbar-collapse" class="navbar-collapse collapse in" aria-expanded="true" style="">

Pages

Subscribe with RSS Subscribe to RSS - Theme development