Magento : mobile/web themes - magento

first i have 2 themes mobile and theme.
i wanna know how to enable web theme if the customer connect from the web
else if he is connecting from mobile then enable the mobile theme.
is there any way to do that in the admin panel or by developpement ?

Go to Configuration -> General -> Design.
Under Themes -> Template click Add exeption, fill Matched Expression with iPhone|Android and Value with theme name. Repeat same on Skin (Images / CSS), Layout, Default.
It should look like https://dl.dropboxusercontent.com/u/2030135/mobile.jpeg

Related

How to activate the custom theme in magento 2.1?

I have recently installed magento Community edition of 2.1 version just want to integrate the custom theme.I made vendor and theme as like magento 2.0 . And also check the theme is showing in magento admin panel in content setting but when i going to activate it in path
store -> configuration -> design there is no options for "Design Theme" where i can activate it. Help would be greatly appreciated.
You can activate the theme in Content > Design > Configuration in the admin.
The files that your theme must contain are:
registration.php
theme.xml
dev/tools/grunt/configs/themes.js

Magento 2 Design Theme tab is missing

Hi, I am trying magento 2 and struggling to install the new theme. Because Design Theme is not showing under Stores > Configuration > Design.
It has been moved to Content/Design/Configuration
Yes It has been moved to Content/Design/Configuration.
check screenshot for more clarification
Then you can select specific store if you have multi store. click edit action and in new window you can find search engine robots setting.
In Magento 2.0.x, you can configure the theme in Stores > Configuration > Design.
However, from Magento 2.1.x, this configuration is relocated in Content > Design > Configuration. Edit the theme currently in used, and select the newly installed theme.
Screenshot

Mobile subcategory dropdown on Magento mobile theme

we are making mobile layout for our web site, but we don't know how to edit the subcategory dropdown: which code should we add o change?
link
(the dropdown that starts with the word "sedie")
Activate developer mode and template hints on your page to see witch Phtml is used in this case.
So you can make your own theme.
See here

Liferay - is it possible to set color scheme for control panel?

The problem is that I have created new theme in liferay together with five color schemes. I have succesfully deployed theme into portal.
Now, I need to set this theme as main theme for Control Panel (control panel->configuration->portal settings->display settings->look and feel). This is not problem, but after selecting my theme there is no option to select any of my color schemes.
Is it possible to set color scheme for control panel or not?
Thanks.
On the Control Panel UI there’s no option to do that, unfortunately.
But writing a plugin that does that for you shouldn’t be that hard. After all the Control Panel is just a Group with a theme.
I run into the same problem, here is what you can do:
1) write a JavaScript Code (JQuery or Alloyui), in the main.js file of the theme that execute on page load and detect the Control panel and change the class of <body> to the Color defined in the main.js.
2) write a Hook to change this JSP : /html/portlet/portal_settings/display_settings.jsp.

How to create a custom Google Sites theme?

I would like to create a custom theme. It is possible to apply other people's custom themes (http://www.gethemes.com/free-themes) but I cannot find documentation on how to create Google Sites themes.
I don't know how to create a entirely custom theme from scratch, but you can create a theme that is extremely "customized". In other words, you can create a new site, apply an existing theme, then customize colors, fonts, and background images (or textures) for all the various parts of the page. You will not be able to change the size of the various elements (sidebar, header area, etc), but as long as you can find a base theme with the general layout that you'd like, you're set. You are then free to publish your new theme as a template.
If this provides the flexibility that you hoped for, here are the required steps:
Create a new Site. This will be the basis for your theme.
From the "More" button/menu, select "Manage Site".
On the left column, select "Themes" (bottom of list)
Take a look at the pre-built theme catalog on the page. You will need to choose one for your "base theme". (Simply note the name of your chosen theme at this point). Once you have decided on a base theme, click the link at the top of page titled, "Build Your Own Custom Theme".
From the "Base Theme" drop-down, select the theme you chose on the previous step.
Now you are free to customize colors, fonts, and background images (or textures) for all the various parts of the page. (This process will not allow you to change the size of the various elements, which is why it is important to choose a base theme with the general layout that you'd like.)
Finally, return to the "Manage Sites" page, and under the "General" tab, look for the button labeled "Publish this site as a template", and follow the instructions found there (naming the template, etc).
UPDATE: You can find similar instructions in the official documentation.

Resources