This forum is for assistance with theme development.

Error code after creating asset library

I'm getting the error below after creating a child theme including a themename.libraries.yml and putting the code below in it.

The asset reference from the library.

libraries:
  - mytheme/global-styling

The library code:

global-styling:
  css:
    theme:
      css/style.css: {}
  js:
    js/script.js

The error code:

View theming page for ad

Hey guys,

I know its easy to insert an ad or any sort of code between view results using template. Is it possible to do it only for the first two pages? I've been looking on how to do this, but haven't found a way yet. Even more, using the load more button approach for pager. Basically I want to insert an ad each # of results, but only on the first two pages. Is it even doable?

Thanks

Drupal 7 Bamboo theme

I'm trying to get the skip to main content link to work in the Bamboo theme. In sites/all/themes/bamboo/templates/page.tpl.php I added the following:

<?php if (!$is_node): ?>
      <?php print render($title_prefix); ?>
      <?php if ($title): ?><h1 class="page-title"><?php print $title; ?>
      <a name="main-content"></a>
      </h1>
      <?php endif; ?>
      <?php print render($title_suffix); ?>
      <?php endif; ?>

Unable to update.php

Hi

I have successfully updated to Drupal core 8.9.11

However when I try to run update.php I get the pink message:

+++++++++++++++++++++

MISSING OR INVALID MODULE
The following module is marked as installed in the core.extension configuration, but it is missing:
evergreen
Review the suggestions for resolving this incompatibility to repair your installation, and then re-run update.php.+++++++++++++++++++++++

How to Cache external stylesheet (D7)

I am trying to add the same Stylesheet for all my Subdomains / Sub-sites....

All my Sub-sites (should) have the same CSS, and I am tired to run & update each of my 14 Sub-domains whenever I want to make a small change; and if I forget to run around them all, a big Chaos ensues, and I don't remember what I have updated and what not....

In Drupal 7 - I can do it only putting my stylesheet in a root folder and adding my Stylesheet as External Stylesheet, with Absolute URL - into Template.php file, as far as I understand?!

Is it possible to get roles / users assigned to content type?

Hi,

is it possible to get list of roles / users which are assigned or have access to nodes of particular content type?

Example:

I have content type Teams that can be managed by users which has these roles Editor, Moderator, Finalizer.

On hook_node_update() I want to get all users which can have access to the particular Team node.

Thanks

Kaleem

Pages

Subscribe with RSS Subscribe to RSS - Theme development