Skip to main content
13 votes
Accepted

How to create new product slider in home page in Magento 2

Display Products on Homepage in Magento 2 Another way to make the homepage attractive, though, is to show the best products on the homepage of your store. It is the best way to get the attention of ...
Muhammad Hasham's user avatar
9 votes
Accepted

magento 2 : where is Layout XML File for Homepage located

Magento-2 file path hierarchy First check in your current theme app/design/frontend/YourTheme/ThemePackage/Magento_Catalog/layout/catalog_category_view.xml app/design/frontend/YourTheme/...
Suresh Chikani's user avatar
8 votes

Magento 2.3 - homepage redirect to 404 page not found

Enter in you database and run this : SELECT * FROM `url_rewrite` WHERE request_path=''; Delete the rows and after that do : php bin/magento setup:upgrade php bin/magento cache:flush Disable the ...
Ylgen Guxholli's user avatar
7 votes
Accepted

How to set a specific category page as homepage in Magento 2

You can use switcher for change configuration scope to set different default web urls for multiple store views
Max's user avatar
  • 4,054
6 votes
Accepted

How works getChild() method in Magento 1.9

Magento's MVC paradigm is implemented a bit differently than the classical one. The V(iew) is actually a set of blocks that are classes with logic rendered by a template. Each block has a name. The ...
Marius's user avatar
  • 198k
6 votes

Magento2.2: How to disable cache for homepage only?

Try this, Method 1: Add the below code to homepage cms under <referenceContainer name="content"> <block cacheable="false"/> </referenceContainer> content ->...
Prathap Gunasekaran's user avatar
5 votes
Accepted

Login mandatory for using my store

For this you can redirect your customer (not logged in ) to login page. you can achieve this by event observer. Follow below steps to create custom module Create File with name Namespace_Module.xml ...
Piyush's user avatar
  • 5,904
5 votes

There was no Home CMS page configured or found magento 2.1.7

Check if the page that you choose for the home page have the store view included in the option PAGE IN WEBSITE. Content > Pages> Home(or the name of your home page) > Edit > Page in website
Pasquale Perrone's user avatar
5 votes

How to set a specific category page as homepage in Magento 2

Please follow below steps to make category page as home page Step 1 Find out an internal identifier of the category 24. Step 2 Locate the General → Web → Default Pages → Default Web URL option in ...
gelanivishal's user avatar
  • 1,336
4 votes
Accepted

Magento 2 : Alternate Logo for Page Layout

Create helper to change logo dynamically Override default.xml in your theme and add helper in logo_file argument Magento_Theme/layout/default.xml <argument name="logo_file" xsi:type="helper" ...
Prince Patel's user avatar
  • 22.9k
4 votes

Magento 2.3 - homepage redirect to 404 page not found

Same issue in my new Magento 2.3.1 site, my site doesn't have blank request_path. The reason is built in page cache doesn't distinguish the GET and HEAD requests and not cache them separately. After ...
Key Shang's user avatar
  • 3,445
3 votes

Magento 2 : Alternate Logo for Page Layout

The better way to do this will be using helper function. in your Magento_Theme/layout/default.xml you can pass argument for logo like this- <argument name="logo_file" xsi:type="helper" helper="...
Piyush's user avatar
  • 5,904
3 votes

Magento 2 : Alternate Logo for Page Layout

I tried, this is working for me very well. Magento_Cms/layout/cms_index_index.xml: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Evgeny Levinsky's user avatar
3 votes
Accepted

Magento 2: Can create two different templates for the Homepage?

If having more than one store view, we can create two cms pages for each store view with the same url key. However, we don't need to create the new cms home page with the same url. We can create a new ...
Khoa TruongDinh's user avatar
3 votes
Accepted

How does home page routing work

http://inchoo.net/magento-2/routing-in-magento-2/ on Magento 2 routing discusses the sequence of Routers: Base, CMS, UrlRewrite and finally Default Router. FrontController::dispatch loops through ...
gwideman's user avatar
  • 515
3 votes

How does Luma theme home page work?

Pretty straight relation which invokes home-page-block, is Widgets. Content -> Widgets -> Now click on Home Page widget. Storefront Properties -> Layout Updates -> specific page Widget Options -> ...
Krishna ijjada's user avatar
3 votes
Accepted

Website not showing after installed supee-6788

I'd check System -> Permissions -> Blocks and ensure the blocks you're using have a status of Allowed. Similar to: https://stackoverflow.com/questions/33433109/applying-supee-6788-it-removes-...
Matt Antley's user avatar
  • 1,220
3 votes

Magento2: List the all categories and sub categories in home page left sidebar

I have to do something similar and I have used following code to achieve the requirement. app/code/Anshu/CategoryFilter/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::...
Anshu Mishra's user avatar
  • 8,990
3 votes
Accepted

Set Custom CMS page as a home page programatically in Magento 2

You can set default value with following code. public function __construct(\Magento\Config\Model\ResourceModel\Config $_resourceConfig) { $this->_resourceConfig = $_resourceConfig; ...
PROGOSTECH's user avatar
3 votes

How to Redirect 404 page to homepage

You can use below settings from admin panel: Admin -> System -> Configuration -> Web -> Default Pages -> CMS No Route Page and select Home page from drop-down.
Ansar Husain's user avatar
  • 3,469
3 votes

Magento 2.3 - homepage redirect to 404 page not found

check url_rewrite table , into that table home page blank request_path entry there and removed that entry, then check php bin/magento cache:flush php bin/magento cache:clean
Navin Bhudiya's user avatar
3 votes

Magento 2.3 - homepage redirect to 404 page not found

We also have this problem on 3 separate installations of Magento 2.3, all on different servers. This has only happened since the upgrade from 2.2.6 and seems to occur at exactly the same point in ...
Dan's user avatar
  • 51
3 votes

Magento 2.3 - homepage redirect to 404 page not found

We are facing the same issue as well and it still needs to be debugged in detail. But we are using below as the temporary fix Modify 'aroundDispatch' method of file vendor/magento/module-page-...
Ravinder's user avatar
  • 449
3 votes
Accepted

Image slider for pwa studio

The pwa studio project is moving quickly, and so there are a lot of changes that might not work in a couple of version down the line, but here is a way to add in a slider to the home page. After ...
circlesix's user avatar
  • 4,323
3 votes
Accepted

After installing magento 2.3.1, page can not open properly

please run below commands: rm -rf generated/* var/cache/* pub/static/* php bin/magento s:d:c php bin/magento s:up && php bin/magento s:s:d -f php bin/magrnto c:f and check
Rutvee Sojitra's user avatar
3 votes
Accepted

How to show Recently Searched Products without using Widget on HomePage (Luma). Magento2

Please create a static block with the following code {{widget type="Magento\Catalog\Block\Widget\RecentlyViewed" uiComponent="widget_recently_viewed" page_size="5" show_attributes="name,image,price,...
Aasim Goriya's user avatar
  • 5,454
3 votes
Accepted

Magento 2 admin page redirecting to homepage

after hard hurdle i got it fixed. i replace htaccess file with this code and working perfect ############################################ ## uncomment the line below to enable developer mode # ...
Aadii Mughal's user avatar
3 votes
Accepted

how to add youtube link in block?

You can follow these steps to achieve the above scenario 1- Create a custom variable from Admin-> System-> Other Settings-> Custom Variable Then save the configurations. 2- Create a block ...
Bushra's user avatar
  • 62
2 votes

Magento 2:- How to call a js file on homepage?

If you want to include a javascript file from your theme into a cms page or block, you can use the built in x-magento-init system. This will remove the need to use xml or placing anything in the head ...
circlesix's user avatar
  • 4,323

Only top scored, non community-wiki answers of a minimum length are eligible