This forum is for assistance with theme development.

STICKY: Theme development forum guidelines

The theme development forum was created to aid those who are developing themes for Drupal. This forum is not for issues you may be having with contrib themes. Issues with contrib themes should be placed in the issue queue of the theme in question. Please respect this.

If you you have drupal installed already and are seeking a theme, have a question about a specific theme and what it does or if it will fit your use case, please place your questions in the Post installation forum.

how to use custom fonts

hello,

We are moving our site to Drupal.  We are using a font from myfonts.com.  I created a folder in Drupal and copied all of the myfonts files there, including the css file.  I tried linking to the css file, but it's not working, not loading.  I also tried adding the css file to the libraries.yml file, based on an article I read.   How should custom fonts be set up in Drupal?

thank you

[Solved] Can't find file to make simple edits to homepage template

Hello,

My site is setup to show links to our social media pages in our header area.

Under:

/public_html/sites/all/themes/ourtheme

I was able to update one of these links as needed in this file:

page.tpl.php

The change has been successful on every page of our site except for our homepage, even after deleting and refreshing cache.

I'm not a developer, just trying to figure things out as I go.

Can anyone please let me know if there is a separate file that controls what shows on the homepage that needs to be edited as well?

Specific zones just for specific pages

I'm thinking of a page with selectable tabs, made with Bootstrap. I would like to assign to each tab a different display of a view (a different block, then), actually it would be a view with a changing filter value. I cannot see the way to achieve this, except overloading the layout of the theme with zones I would use only in specific cases (for specific pages).

Any idea?

Thanks in advance!

Andrea

stop ckeditor5-stylesheets from overriding admin theme?

We want to add our site stylesheets to ckeditor, but keep the admin theme styling intact and only style the elements inside the actual wysiwyg (ck-content).

In ckeditor4, we could just point to our site's front end stylesheet, which would then style all the elements inside the wysiwyg to appear like they would on the front end.

In ckeditor5, when I do this, the actual admin theme is getting restyled/overridden by our front-end style sheet. Form elements in particular are restyled according to our front end. This is not desirable.

Displaying Sibling Menu Items in the Center of a Page in Drupal

I have a Main Navigation menu structured as follows:

  • Home
  • Product Center
    • Shoes
    • Socks
    • Pants
  • Contact Us

When I click on "Shoes" in the menu, I want to display its sibling menu items (Shoes, Socks, Pants) in the center of the page, like this:

Shoes | Socks | Pants

How can I achieve this effect in Drupal?

Pages

Subscribe with RSS Subscribe to RSS - Theme development