This forum is for assistance with theme development.

problem:Default Theme (Bartik & seven) Is not applied for Drupal 8.6.1 after its installation ,

I've several times Installed Drupal 8.6.1 on the server, but after installing no themes were shown(both Bartik, seven for control panel).

what should I do, How can I solve this problem?

How to print date in node twig file

Here are the four easiest ways I’ve found to show dates via Twig inside of a node template.

They all result in the same output.

Use the field’s format settings; include wrappers

1

{{ content.field_blog_date }}

This is the only example that includes wrappers. The rest output just the date.

Use the field’s format settings

1

{{ content.field_blog_date.0 }}

To create downloadable link on front page

I am providing below code for creating link to downloadable files and make them download on your web application:

I assume the file url has been set in url that can be encoded such as:

https://www.drupal.org?destination=file-url

/**
 * Implements hook_preprocess_HOOK().
 */
function vf_theme_preprocess_page(&$variables) {

Rename theme folders

Hello guys , i apologise if this question has been posted elsewhere in the forum but i did check pretty thoroughly. i am new to drupal but i have done several sites using drupal now. i bought this theme from themeforest and i feel like i want to change and/or rename folders and maybe modules if possible. i have done some research and found some ideas about altering the .info file, libraries files etc but it doesnot work for me. what i want is remove all cases of this theme creator and replace it with my company name, so i will appreciate a step-by-step help to totally achieving the same.

Drupal 8 problem with html--front.html.twig

Hi,

I develop a custom theme..

I have the page.html.twig where I develop the structure I want to have on all pages. Everything works fine.

But I want the front page to have a different structure so here is where the trouble begins. I have make a html--front.html.twig file.  After that it shows me nothing only the logo of the website..

What should I do?

Thank you.

Pages

Subscribe with RSS Subscribe to RSS - Theme development