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.

Display sitename and node title on top of node body

Hello,

I'm developping my first custom theme and I need some help.

I need to render nodes body field as following:

h2 : My Site Name,
h3 : My Node Title
div : My Node Body HTML text

Can you help me to do that ?

I didn't found any help in field--text-with-summary.html.twig

Thanks

External links disabled

I installed the newest version of drupal because I saw the layout builder and that intrigued me. So I get it installed on my local host and it seems to be working only when I tried to install the layout builder extension it told me

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it. I can see the need for security, but how do you get this working?

Yes Noob here...

Thanks!

Drupal 7 vs Drupal 8

I'm developing a new theme for a cloud service company. Should I go with Drupal 7 or Drupal 8?

Thanks,

Ron

Eternal Header Wrappers, instead of Full Page Wrapper

page.html.twig is creating eternal header wrappers, instead of full Page Wrapper;

and I am unable to accomplish a Full Page Wrapper.....

I have checked my DIV's, but Drupal is Adding some extra DIV in most illogical place each time... I am refurbishing a Bartik duplicate's page.html.twig

It is also proved - because I can accomplish a Primary Menu - to Footer full menu wrap; but not to include Header, Secondary Menu...

OK, full code is something like:

How to safely Remove .dialog-off-canvas-main-canvas class Div?!

So, I am creating my first Druupal 8 Theme..... On Bartiks base, but changing all css & page.html.twig

I was editing page.html.twig of course....

and it seems, I can not make all Region Div's in vertical line, as soon I look into Firebug - some Mystical Div dialog-off-canvas-main-canvas shows up and cuts off all Header and Secondary Menu divs from the rest flow of the page.....

my page.html.twig looks like:

Pages

Subscribe with RSS Subscribe to RSS - Theme development