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 ...
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/...
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 ...
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
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 ...
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 ->...
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 ...
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
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 ...
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" ...
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 ...
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="...
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:...
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 ...
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 ...
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 -> ...
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-...
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::...
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;
...
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.
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
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 ...
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-...
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 ...
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
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,...
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
# ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
home-page × 172magento2 × 92
magento-1.9 × 18
magento2.3 × 17
magento-2.1 × 12
redirect × 10
category × 9
layout × 9
product × 8
cache × 8
javascript × 7
cms × 7
cms-pages × 7
blocks × 6
xml × 6
products × 5
static-block × 5
cms-block × 5
widget × 5
php × 4
magento2.2 × 4
error × 4
multistore × 4
addtocart × 4
layered-navigation × 4