0

In a drupal page view under advanced=>Theme:Information=>Change Theme, I'm able to select a theme from the dropdown. Custom templates I've created go bold as expected. But when I save the view and check the theme information, it always reverts to the site default theme. I've tried this with a custom theme I created and a view themes that came with my installation.

  • Is your custom theme set as default theme under yoursite/admin/appearance/settings? – Volker Mar 17 '16 at 16:12
  • No, the custom theme was created specifically with this view in mind. – AndrewE Mar 17 '16 at 16:20
  • The theme selector under the advanced view section is not for selecting a theme that should be displayed, it's only for informational purposes afaik. – Volker Mar 17 '16 at 16:31
  • I see. Any idea how to override the default theme just for that page? – AndrewE Mar 17 '16 at 16:39
  • I recommend this little tutorial for a start: ostraining.com/blog/drupal/views-templates – Volker Mar 17 '16 at 16:54
1

To use a different theme for a specific page, try the ThemeKey module. It allows you to define rules for automatically selecting a theme. You can create a rule to switch theme for a particular path, which is probably the one you want. Another useful one is to select the theme based on the user's role. For example you can test theme modifications on a production site by showing one theme for anonymous users and your work-in-progress theme for the administrator role

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.