Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I got stuck in using custom templates for my content-types. I have been following all the documentation or answers that I found on google like the following:
I have page__content-type.html.twig file inside my themes/templates directory, the following if part(if code) is under mytheme.theme file, inside
function mytheme_preprocess_page($variables){}, this is default function name(I didn't add it, it was there) which was there inside the theme when I installed it.
I just did a manual upgrade to D8.8.1 using the recommended-project layout following the instructions here: https://www.drupal.org/docs/8/install/add-composer-to-an-existing-site.
All my contributed modules are in 'newsite/web/modules/contrib'. I tried to do a test of the new design by using composer to install a new module, redirect.