Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

Filter by
Sorted by
Tagged with
7
votes
1answer
5k views

Magento2 : how can I call my theme images in static block

I have install Magento2 and create static block how can I call my theme images in static block ? In Magento1.x we used {{skin url="images/demo.jpg"}}. Any one have idea for how to call images in ...
5
votes
1answer
3k views

Magento 2 - editing module structure and functions

in Magento 1.x you could duplicate the extensions to app/design/frontend/themeName/default/template/or/layout and then modify it's layout or functionality via xml or phtml files. How do we duplicate ...
3
votes
3answers
10k views

Accidentally deleted .htaccess file inside pub/static folder

I accidentally deleted my .htaccess file. Before that I could just delete everything in the var and pub/static folder (except the .htaccess file of course) and just reload the page to see my CSS / ...
3
votes
3answers
10k views

How to edit and modify the main page of Luma theme?

For the Luma theme, how to: How to reach and edit the main page of magento 2 Luma theme? How to replace the images there with my images? How to edit the hot sellers section? How to reach and edit the ...
10
votes
6answers
2k views

Magento 2 - Overriding CSS without using !important everywhere

I'm working on a Magento 2 site at the moment for a client. Suppose my client's brand is boofar and the theme I'm trying to extend/override is foobar I've set as the parent theme using frontend/...
5
votes
2answers
4k views

Hiding Price if 0

This seems like it should be easier then the results Im getting. Im not a PHP expert but I've got a product(s) that will be a different price and therefore am trying to set it up so when it's in my ...
5
votes
4answers
350 views

What is the proper way to add theme-specific translations of new strings?

We are creating a new template and have some new text which are not yet defined anywhere. If they would be defined before we would add some "Mage_TheModule::Foo";"Fuh" to the translate.csv in the ...
4
votes
1answer
6k views

How to utilise the existing LESS variables in my new less file

As the title says, i want to use LESS variables that are already defined by Magento. for example, there is variable called @color-white defined in following file. ROOT/lib/web/css/source/lib/...
2
votes
1answer
7k views

404 and links on the product page

After migrating magento I've encountered weird errors. On the bottom of my product page there is a 404 error. Nevertheless, all content is showing above and everything other works fine. There is ...
2
votes
2answers
888 views

Display Group Price to all users

I'm having trouble displaying the group price to all users, i'm running 1.9 it obviously works if you're logged in and a user, but i need to display it to non members to entice them to become a ...
2
votes
1answer
5k views

Magento 2 : Refuse to apply style

I have this error : Refused to apply style from 'http://www.portailclient-dev.com/pub/static/version1528816010/frontend/My/Theme/fr_FR/css/custom-m.css' because its MIME type ('text/plain') is ...
2
votes
3answers
5k views

Magento2 Update layout Using Observer on Product page

I want to Update XML using observer on Product Page when page load. I want to set there condition with product Attribute there. How can I do that?
2
votes
5answers
4k views

How to Rename Theme Folder in magento2

I am trying to change the Magento 2.1.0 theme folder name to my companyname. But I cannot find any help online. Please help.
1
vote
2answers
2k views

get requirejs-config.js to load declared cdn's for jquery

I have been trying to get the requirejs-config.js to load, but as of yet it will not.. I have followed http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/javascript/custom_js.html and put the ...
1
vote
4answers
4k views

How to assign a theme in Magento 2 using a setup script?

How can we assign a theme in Magento 2.1 to a store using setup scripts? Thank you
0
votes
3answers
14k views

Magento 2 : How to Include New Fonts

I have added new fonts in <my theme>/web/fonts, and declared those fonts in <my_theme>/web/css/source/_typography.less. But still my custom fonts not reflecting in my pages. I'm missing ...
4
votes
3answers
10k views

How to remove the Add to Cart button from Catalog pages in Magento 2?

How to remove the Add to Cart button from Catalog pages only?
4
votes
1answer
12k views

Magento invoice email customization

I am trying to setup a Invoice email template in Magento, and I see that the most of the informations I want is displayed. However, I would like to display the shopping cart content with only the ...
4
votes
3answers
3k views

Magento 2 Unable to find a physical ancestor for a theme

I've delete Magento 2 theme folder and upload it again but when upgrade it via command line i've got an error say Unable to find a physical ancestor for a theme so any suggestion about that?
3
votes
1answer
3k views

class magento\framework\serialize\serializer\json does not exist

I am trying to update my CleverSoft theme and I receive this in command line when I run this: php bin/magento setup:di:compile
3
votes
3answers
2k views

Magento 2.1 Theme option not available in Store > Configuration > General > Design

I installed Magento 2.1 successfully.But When I go Store > Configuration > Design,theme option not avaiable.I tried pub deploy and flush cache and reindex command but theme option not available in ...
3
votes
2answers
3k views

Magento CE 1.9 ordering ccs files

I'm running CE 1.9.0 & I've created a sub theme of the rwd template. So I have folders like so: app/design/frontend/rwd/mytheme/layout/local.xml app/design/frontend/rwd/mytheme/templates/ - ...
3
votes
2answers
4k views

Setting default payment method and skip the payment step

I would like to 'skip' the payment method step on the one page checkout step in Magento. I am currently using SagePay as my payment method and well, as SagePay is my only method it seems pretty ...
2
votes
3answers
863 views

Magento 2: Theme change field is missing in Design Tab

I created a new theme but when i tried to change the theme from stores -> configuration -> design Tab I found that theme change field is missing from design tab. Please look at screen-shot ...
2
votes
2answers
15k views

How to setup multi stores with different themes for Magento CE

I'm new to Magento. Our plan of creating eCommerce website with Magento CE is like that: we only have one website (one domain), first, we will create one store, name 'handbag', the landing page will ...
1
vote
2answers
13k views

Magento 2 : How to Create Custom Header and Footer

I am creating new header.phtml and footer.phtml and store into app/design/frontend/<vendor_theme>/mytheme_name/theme_layout/template/html. so how to add new header and footer in magento/blank ...
1
vote
1answer
510 views

Create a new package based on “default” package’s “default” theme

I'm studying to get Magento FE certification and I've found some demo questions like this: You want to create a new “screendesign” package based on the “default” package’s “default” theme. Which ...
1
vote
1answer
132 views

Implement a custom theme Magento 2

I am not able to implement a custom theme in Magento 2 (on mac os x) can you provide me with information please?
1
vote
2answers
4k views

Full Width Slider

Has anybody been able to implement a full-width slider on Magento using the default theme? I've played with it and can't successfully get the slider to display outside of the main container which ...
0
votes
1answer
56 views

How to restore the default checkout template?

I never use Magento but, a friend uses it and a dev. broke their checkout page, how I can restore the TEMPLATE of the checkout to default? I don't see a backup of any of the files, and I no have clue ...
0
votes
1answer
54 views

how to do theme intergate in magento 2.3?

I downloaded a theme using this link How to used CSS js HTML same theme show in Magento 2.3 frontend side so please tell me what to do in theme integration
0
votes
2answers
3k views

My Magento 2 theme not showing up in backend

I hope somebody can help me out, I've tried doing it a million times again but somehow my theme doesn't show up in the backend of my Magento 2 installation. Here are my files: app/design/frontend/...
0
votes
1answer
2k views

Magento 2 - Modify default Admin Logo (login and backend menu) with Custom Theme

After creating my custom storefront theme, I am now trying to modify the default magento admin logo with custom theme(the logo in the login admin portal and the Magento icon at the top left of the ...
0
votes
1answer
2k views

Set product image size? [duplicate]

I got this method in my RelatedProduct class that gets related product image URL public function getProductImageUrl($product) { return $this->_storeManager->getStore() ->...
-1
votes
3answers
244 views

Front and backend not loading properly [closed]

When I am opening my admin panel, the pages are not loading properly.please help me to resolve this error as soon as possible
7
votes
3answers
18k views

Adding javascript to head in certain pages

I'm trying to add some javascript scripts to the head of certain pages of my magento store (now I need one script in the product pages and other script in checkout, but I will need it in other ...
24
votes
3answers
21k views

Something went wrong while saving this configuration: Area is already set

I am unable to apply a new theme in a clean install of 2.2.4. Upading to 2.2.5 does not fix the problem.
12
votes
4answers
15k views

Magento boilerplate / blank / skeleton / naked themes for theme development

Does anyone out there know of a good, clean boilerplate / blank / skeleton / naked theme (unsure of the proper term myself) besides the base/default? Not that it is bad, but sometimes another one may ...
15
votes
3answers
3k views

Magento2 design fallback logic

We already know design fallback logic from Magento 1.x: Current package / Current Theme Current Package / Default theme Base Package / Default theme Now. i want to know What is the design fallback ...
10
votes
2answers
3k views

How to create theme in magento 2 stable version?

How to create theme in magento 2 stable version? There are tutorials available for Beta but not stable. The steps I took are as follow :- Created folder inside app/design/frontend/Themevendorname/...
7
votes
3answers
10k views

Error “Cannot read contents from file..” when changing themes from admin panel

Error: Cannot read contents from file "C:/wamp64/www/magento2/" Warning!file_get_contents(C:/wamp64/www/magento2/): failed to open stream: No such file or directory
4
votes
5answers
15k views

How to change default logo of magento admin panel

How to change default logo of magento admin panel
3
votes
1answer
5k views

parent and child themes

I have followed the article here, http://alanstorm.com/magento_infinite_fallback_theme_xml and I have it working 99%. There is an odd thing happening that clearing the cache and all the moving around ...
2
votes
1answer
1k views

Relationship Between Module Layout Handle XML files and Theme Update XML Files

What's the relationship between a module's layout handle XML file and a theme's layout handle XML file? Which files have priority? When does one file replace another file? When does one file merge ...
21
votes
2answers
7k views

Difference between <remove name=”" /> and <action method=”unsetChild”> in layout

What is the difference between <action method=”unsetChild”> and <remove name=""/>? Both functions are used to remove a block from the layout. Could someone explain with an example?
6
votes
2answers
3k views

Where to place Magento 2 Theme customizations?

I installed Magento 2 via Composer and it does not have a directory for theme in frontend. I tried to create a new theme in app/design, every time I create registration.php I get an error. Question ...
5
votes
1answer
2k views

How to Override phtml file in Magento 2?

I am overwriting vendor/magento/module-catalog/view/frontend/templates/product/view/attributes.phtl and I tried puting the overriden file in two locations but no chages occur First: app/code/<...
4
votes
2answers
4k views

Magento 2 override module-ui from custom theme

Is there any option to override magento-ui vendor/magento/module-ui/view/base/web/templates templates from a theme? Other module's templates overriding works fine: var config = { map: { ...
3
votes
4answers
15k views

how to delete a theme

In Magento2, I tried to follow this procedure. Just before the paragraph, "Theme Logo" I wanted to try to apply the theme already. It ended up in an error, then I decided to restart from 0. I deleted ...
3
votes
1answer
888 views

Magento 2 - discrepancy between documentation and theme files structure on github

I am creating a new theme and would like to start by duplicating the default blank theme and then modify it to become my new theme. When I checked the frontend developer guides, it indicated the ...