This forum is for assistance with theme development.

Logo redirect not working after using TB Megamenu

Hi,

Site branding block is placed in a different region and menu(Tbmegamenu) is placed in different region but logo redirect stopped working after using Tbmegamenu but before it was working correctly with superfish and normal menu.I have not changed any code in system-branding-block.html.twig. 

 <a class="logo navbar-btn pull-left px-5 py-3 logomargin" href="{{ path('<front>') }}"  title="{{ 'Home'|t }}" rel="home">

      <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />

    </a>

Question about theme content

Hello all,

I'm managing a site in which I run a subdomain with a diffferent theme and content (NOT a multisite). The question is regarding the admin content shown of each one. In example, this:

  • my_main_site.com: I've installed reCAPTCHA module.
  • my_secondary_site: The reCAPTCHA module is not there, and I'm unable to install it (even as admin).

Also, I've updated Drupal to 9.3.13 in my_main_site, and the secondary stayed in 9.2.6!. 

I only have one settings.php, and only one folder: drupal/web/sites/default

How to change order of links and book nav in book module

I want the book child navigation to be placed above the add child page, etc. links rather than below.

Node.html.twig dumps out the body contents including the bottom links and presumably the child nav. I think that if I turned field.html.twig into field--node--body--book.html.twig, I'd be able to modify the individual components. The only thing is that field.html.twig is so abstracted that I don't know if I'm in the right place much less how to go about picking out the components I want to alter. Am I headed down the right path? Is there a better way to do this?

How to render a Node "only" in D9 with a custom twig template? (no page/header/footer)

Hi there,

I've been looking for quite awhile for a solution to this problem.  I have a use case where I have Nodes rendered on Pages for normal consumption like on a website.  But, I also want it to be a 'printable' type view mode which will not have header/footer etc and will need custom theming (html, css).  So I have two view modes for the Node, one is for the website the other I want to customize (let's call it Print).

Logo redirect only working in page--front.html.twig

{% if site_logo %}

    <a class="logo navbar-btn pull-left px-5 py-3" href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">

      <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />

    </a>

  {% endif %}

this is only working in <front> page for other pages or content type if i create its not working

twig theme for order item

Hi, I wanted to add some custom text to my commerce confirmation page. I did that successfully by using:

commerce-checkout-completion-message.html.twig

However I want to add customised message that wont be valid for every order completion.

There is a unique: checkout flow, order type, order item type for this, could I use the name from any of those to add to my twig template? using the debug I don't see any suggestions with any of those value sin them though in the order completion page. 

thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development