Questions tagged [theme-negotiation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
63 views

ThemeNegotiator not working for admin pages

I'm trying to use the ThemeNegotiator to change the theme of the add and edit pages of one content type. I've followed the following very extensive posts/blogs. Don't use admin theme for adding ...
0
votes
1answer
12 views

Template suggestions periodically not being recognized

I have some simple template suggestions setup in my THEME_preprocess_node() function. Example: function my_theme_preprocess_node(&$vars) { if ($vars['node']->type == 'MY_TYPE' && $...
0
votes
0answers
58 views

Dynamically set theme per block/paragraph

I'm looking to apply specific themes to individual items on a page - a different theme to the rest of the page. I realise this seems quite obscure, but the general premise is similar to a styleguide. ...
2
votes
1answer
36 views

Switch theme by http status code

We have a page that uses several themes, but the 404 pages should all look the same. So, for all themes except one we need a rule that switches to another theme when the URL does not match any ...
0
votes
1answer
82 views

Using regex path pattern on Themekey module

Currently on the themekey config page for regex instructions it shows: regular expression, including delimiters and modifiers (see PHP Manual) But is there an example of how to setup a url ...
0
votes
1answer
616 views

Alternatives to themekey? [duplicate]

I need to show my website with a "theme" when in header's requests is present a particular key/value. In Drupal 7 I do this via themekey, but this module does not exist in Drupal 8. Are there ...
1
vote
0answers
82 views

How to change active theme based on taxonomy?

I have a situation where I need to change the active theme based on whether the current entity has a certain taxonomy tag. So when an entity is viewed and tagged with candy, I would like the Candy ...
0
votes
2answers
2k views

How do I programmatically change the admin theme?

How do I define a different administration theme for a user and administration role in Drupal 8? I have looked at the context module for Drupal 8. There is a problem with the context condition and ...
2
votes
1answer
121 views

How to resolve the negotiated theme for any other user?

I have found How can I programmatically get the theme name?, which works for the current user, but would I apply such logic to learn what theme another user would use? I can get the active theme for ...
0
votes
1answer
52 views

Different Theme for Current URL - Using Javascript?

I know that you can have different themes for different parts of the site, assigning specific URLs to different themes by using hook_custom_theme() or the themekey module - I've used both solutions to ...
-1
votes
1answer
53 views

How can I change a theme for a specific module?

I am new to Drupal, I want to change a theme for a particular module (private message module) current look and feel is not pretty. I am planning to put a "Garland" theme for Private message module. ...
0
votes
1answer
75 views

ThemeKey rule; how to target IMCE pages

On my Drupal 7 site, I noticed that the IMCE popup loses its action buttons and all functionality when I'm using Adminimal as the admin theme: In the Known Issues section of the IMCE project page, ...
2
votes
1answer
128 views

How to remove the Themekey module after its Installation failed?

I installed the module ThemeKey, but the installation failed with a WSOD. Now every page gives me the same 'The website encountered an unexpected error'. So I need to remove themekey, but how can I ...
0
votes
1answer
251 views

3 domain names for one instance of Drupal 8

We are currently developing a website on Drupal 8. This site will be 3 versions . The difference between each site is minimal : Different logo Different colors CSS ( HTML structure remains the same )...
1
vote
1answer
586 views

What are the criteria to decide between modules ThemeKey and Switchtheme?

There are (at least) 2 modules that allow for switching between themes, i.e.: ThemeKey. Switchtheme. What are the typical criteria, or pros/cons, for a site builder (without any custom coding or ...
1
vote
1answer
77 views

Adding a view desktop link to mobile site

I am using X-AH-Mobile-Redirect in the settings.php file to redirect visitors to the mobile site. I need to add a link so that visitors can switch to the desktop site. Here is a snippet of the ...
1
vote
1answer
464 views

How to manage multisite themes from master Drupal installation

I have Drupal 8 multisite to benefit from a single codebase. Also they share the same database. How can I change themes of all the other sites from my main domain/site? Parent and child domain : - ...
1
vote
1answer
27 views

Switching theme for comments as well as nodes (ThemeKey?)

I'm building a site based on Advanced Forum. I need each forum to display a different theme. ThemeKey does this so nicely with a trigger for which forum taxonomy is in effect, but does not seem to ...
0
votes
1answer
311 views

ThemeKey: Use main theme for Node/edit and user/edit

By default, Drupal uses the "main theme" for the main site, and the "admin theme" for the admin pages. I want to use my "main theme" for the user/edit pages and node/edit & node/add pages of the "...
1
vote
1answer
334 views

Themekey with mobile detect not working properly

I am using themekey module with mobile detect module for switching mobile and desktop version of themes. Some time it works and some time not. On Apple devices it load the mobile version. I'm ...
0
votes
1answer
175 views

admin theme changes to default at editing page, Themekey module

Using the ThemeKey module, I have changed the theme of user role (EDITOR) to Administration theme. So, when the user of this role logs in, he gets admin theme. It works find but when he edit ...
0
votes
2answers
936 views

explicit “switch to mobile theme” link with Theme Key

I'm using Theme Key https://www.drupal.org/project/themekey to switch automatically between themes dependent on browser and/or OS id. Now I would like to allow the user to explicitly switch to or ...
0
votes
1answer
199 views

Site with Themekey has CSS cross-contamination

I'm using Themekey with Context to enable one of three different themes on a site, depending on a themekey field. The homepage is set to use my main theme, called 'sitetheme'. Sitetheme is set as ...
0
votes
1answer
247 views

How to add Google Analytics per theme?

Is there a way to add GA per theme. The reason for it is I am using themekey to switch the theme for mobile users. I have read that it is possible to add more than one tracking code on a site but ...
1
vote
1answer
221 views

Themekey & Organic Groups

I have a case scenario in which different organic groups can have different themes. Using "Themekey" I allow the user to select a theme when the group node is created and it works fine. When the user ...
1
vote
1answer
296 views

Does “Boost” module work together with “Theme Key” module?

I wonder if the Boost module works together with the ThemeKey module. Has anyone experience with both modules working together? Especially when it comes to different style-sheets for different ...
0
votes
1answer
90 views

How can I change active theme for specific paths or inside module?

I'm working on an online game engine website where users can create games online and other can play it. All pages are displayed in normal theme except game play page which should be in full screen ...