This forum is for assistance with theme development.

creating own custome theme CSS, js files not loading only parent theme files are loading

I am using olivero as parent theme and trying to create my own custom theme (gva). In my pages, the custom theme CSS, js and static images are not loading, only olivero css, js files are loading. I can not find out where am I doing the mistake. Please help!!!

FAQ page

I am trying to make the FAQ in a FAQ page appear and disappear. I followed this tutorial here (https://www.youtube.com/watch?v=8It3O3whDVg) but I cannot have the jQuery UI accordion in the views option to select it. I downloaded and installed the jQuery UI and jQuery UI accordion modules and they are installed but I still cannot find it in the views. There was another video that I watched where they mentioned to tick a box in the full HTML page from the content authoring in configuration.

How do I remove span tag from node title markup?

In my olivero subtheme (d10)

at node--teaser.html.twig I have

  {% block title %}
    {% if label and not page %}
      <h2{{ title_attributes.addClass('node__title', 'teaser__title') }}>
        <a href="{{ url }}"  title="{{ node.label }}" rel="bookmark">{{ label }}</a>
      </h2>
    {% endif %}
  {% endblock %}

This worked fine in drupal 8-9 but now it outputs

Menu not appearing on the front page

Hello

I am having difficulties setting my menu links. I added a few links on the main navigation menu. They have been enabled and linked to the front page. However, I don't see them on the front page. Can anyone please help? Thank you.

Subtheme Olivero

Hello,

I have installed a Drupal 10 with the Olivero theme. I was going to modify the CSS directly on the theme but then when I download updates I will lose the changes.

To avoid losing these changes I have created a subtheme but it does not inherit the CSS from the original theme and I only want to make some color adjustments, etc...

What do you recommend I do? Would it be better to use another theme with a subtheme generator? Which one? The website is a simple personal blog without too much functionality.

Thank you very much

Sub-theme file path names when viewing the source?

After creating a sub-theme, and viewing the page source, are file paths still inherited from the parent, or do they use the name of your sub-theme?

For example, if the parent theme is named "silly-name", and you created a sub-theme named "better-name", are all the links all based on the sub-theme (A) or would they be a mix of the sub and parent (B)?

Example A (custom)

../themes/contrib/better-name/

Example B (mixed)

../themes/contrib/better-name/ and ../themes/contrib/silly-name/

Pages

Subscribe with RSS Subscribe to RSS - Theme development