If you just started working with Magento, you might be wondering about how to change the basic functionality of your store right from the admin panel. We’ve got you covered with our simple, but comprehensive guide. Below you can check the most common changes in Magento functionality that you can do manually with simple steps or programmatically by using our guide.

How to Login to Magento Admin Panel

Firstly, you need to login to your Magento store’s admin.

Step 1: Go to your Magento website. Add /admin or custom Magento admin URL to the URL and reload the page.

Step 2: Type in your username and password that you set up during the installation process.

Magento Store Admin

Step 3: You are now logged into your Magento 2 Admin Panel.

Magento 2 Admin Panel

Sometimes you need to change your data and reset the password for your Magento admin. We’ll show you 2 ways how to do it for both Magento 1.x and Magento 2.x versions.

How to Change Magento Admin Password

For Magento 1.x

You need to modify the Magento administrator password directly in the database using phpMyAdmin or the MySql client. You can execute the following MySQL query:

UPDATE `admin_user` SET `password` = md5('NEW_PASSWORD') WHERE `username` = 'ADMIN_USERNAME';

admin_user – this is a database table from the Magento database;

NEW_PASSWORD –  the desired password which you want to be set;

‘ADMIN_USERNAME’ – your Magento administrative username.

For Magento 2.x

The first option is to change the Magento administrator password through e-mail. To do this, follow these steps:

  1. Go to the Magento Admin Panel Login.Magento Admin Panel Login
  2. Click Forgot your password.
  3. Type the e-mail address associated with the account.Change Magento Admin Password
  4. Click Retrieve Password. Magento sends a message to the e-mail address associated with the administrator account.
  5. In the message, click the link to reset the administrator password.

To edit an existing administrator, you can use the same command as for creating a new administrator in CLI:

bin/magento admin:user:create [--<parameter_name>=<value>, ...]

Required parameters:
–admin-firstname – Magento administrator user’s first name.
–admin-lastname – Magento administrator user’s last name.
–admin-email – Magento administrator user’s e-mail address.
–admin-user – Magento administrator username.
–admin-password – Magento administrator user password.

If you’re editing an administrator, only the first name, last name, and password can be modified.

Example:

bin/magento admin:user:create –admin-user=admin –admin-password=123123w –admin-email=user@example.com –admin-firstname=Magento –admin-lastname=User

How to Reset Magento 2 Password via Phpmyadmin

You can reset admin password via phpmyadmin

Step 1. Login to phpmyadmin

Log in to Phpmyadmin

Step 2. Choose your database

Step.3 Select ‘SQL’ tab and rub query:

Select ‘SQL’ Tab and Rub Query

UPDATE admin_user SET `password` = CONCAT(SHA2('xxxxxxxxYOUR_NEW_PASSWORD', 256), ':xxxxxxxx:1') WHERE `username` = 'YOUR_ADMIN_USERNAME';

Where admin_user – database table (it can contain table prefix – check it):
YOUR_NEW_PASSWORD – your new password
YOUR_ADMIN_USERNAME – your admin login name
Xxxxxxxx – character sequence is a cryptographic salt. It is saved in an app\etc\env.php file:

<?php
return array (
...
'crypt' => 
array (
'key' => '525701df74e6cba74d5e9a1bb3d935ad', //cryptographic salt
)

You can also resolve the admin access issue by creating new admin user using Magento console command:

php bin/magento admin:user:create

How to Increase the Time Logged into Magento 2

You can increase Magento 2 session lifetime by changing a value in:

Stores > Settings > Configuration > Advanced > Admin > Security > Admin Session Lifetime (seconds)

Magento 2 Configuration Settings

Or you can change value ‘admin/security/session_lifetime’ in table core_config_datait in your store Database.

Next, we’ll describe how to create CMS page and change different parts of your Magento store right from the Admin panel.

How to Create CMS Page in Magento

Step 1: Login to your Magento admin panel and navigate to the Content menu.

Magento 2 Content menu

Step 2: Select the Pages menu.

Content-Pages in Magento 2 Admin

Step 3: Click on the Add New Page button.

Add New Page in Magento 2 Admin

Step 4: Specify your new Page Title and select the desired Store View.

New Page Settings

Step 5: Go to the Content tab and write the page content.
Step 6: In the Design tab choose the Layout for this new page.

Page Layout

Step 7: Note your page URL key.

Page URL Key

Step 8: Save your changes by clicking on the Save Page button.

Saving New Page

How to Add Favicon in Magento 2

Step 1: Go to Content -> Design -> Configuration.

Configuration Page

Step 2: Choose Configuration.

Configuration Types

Step 3: Click on the HTML Head settings tab.

HTML Head Settings Tab

How to Change Logo in Magento 2

Magento 2 store logo can be changed by admin in Content -> Configuration -> Edit link, that is related to store -> Header -> Logo Image

Admin panel > Content > Configuration

Step 2: In the Configuration page, you will see a list of default website, then click on Edit under Action column.

Design Configuration

When the page is opened, scroll down to the Transaction Emails section and click on it.

Transactional emails

Step 3: In Transactional Emails, you will see a list of logo settings for your email including:

Logo Image

Logo Image – different types of file are allowed (jpg, jpeg, png). Here you can upload your desired email logo with a high-resolution display.

How to Change Header in Magento 2

A header can be changed by adding new blocks to the container ‘header.container
’ or its child containers or removing blocks and containers from them. Example for adding block

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
       <referenceContainer name="header.container">
           <block class="Web4pro\Test\Block\Template" name="header.custom.block" template="Web4pro_Test::header_custom.phtml" before="-"/>
             </referenceContainer>
   </body>
</page>

How to Change Footer in Magento 2

Footer can be changed by adding new blocks to the container ‘footer’ or removing blocks from it. Example for adding block:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
       <referenceContainer name="footer">
           <block class="Web4pro\Test\Block\Template" name="footer.custom.block" template="Web4pro_Test::footer_custom.phtml" before="-"/>
             </referenceContainer>
   </body>
</page>
5.00 / 5.0
Article rating (10 Reviews)
Do you find this article useful? Please, let us know your opinion and rate the post!
Not badGoodVery GoodGreatAwesome