How to Change product image sizes in Magento 2.3.6?

Let’s say if you want to adjust the size of category grid product image to 360px x 180px (original: 240px x 300px) as below. Step 1- Find view.xml file Almost all the configurations for product images are included in view.xml (includes width and height). Therefore, if you want to change resize product images in Magento […]

How to change Magento 2.3.6 welcome message?

In Magento 2.3.6, there’s a “Welcome” message in the upper-right corner that says “Default welcome msg!”. You can easily customize this welcome message for each store or store view. To change the welcome message: Log in to your Magento 2.3.6 backend On the left menu, go to Content > Design > Configuration Click on Edit […]

How to Install Magento 2 Blog Extension for Magento 2.3.6 under CentoOS 7?

I have installed magento 2.3.6 under http://www.cheapglasses123.com , by default, there is not blog extension, so I plan to install the free blog extension from  magefan.com/magento2-blog-extension. To install Magento 2 Blog Extension by Magefan, please use one of these installation methods. Installation Method 1 – Installing via Composer (recommended) Open command line Using command “cd” […]

Magento 2.3.6: Need To Remove .Html Product URL Suffix

I have installed magento 2.3.6 under https://www.cheapglasses123.com How to remove .html from category and product url? Admin Path: Stores->Configuration->Catalog click on Search Engine Optimization tab Here you can remove below-mentioned fields: Product URL Suffix Category URL Suffix Make these fields blank (remove .html from both fields) save the config and reindex and clear cache of […]

How to Install Magento 2.3.6 Using Composer?

Say we plan to install magento 2.3.6 under https://www.cheapglasses123.com . We are using CentOS 7, Apache 2.4 Step One: composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.6  . Step Two: cd /cheapglasses123.com/html/   <magento install directory> find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + find var generated vendor pub/static pub/media app/etc -type d -exec […]

chown: invalid user: `www-data?www-data’

When updating wordpress, I got the following error message: chown: invalid user: `www-data?www-data’ Run the following linux command: chown www:www -R /home/wwwroot/www.cheapglasses123.com/

How to Disable Auto Embed Script for WordPress 5.4+ – wp-embed.min.js

From the post body we can find the following code: <blockquote class=”wp-embedded-content” data-secret=”Gp5UKmVoxk”><a href=”https://www.cheapgalsses123.com/”>Cheap Glasses</a></blockquote> <iframe class=”wp-embedded-content” style=”position: absolute; clip: rect(1px, 1px, 1px, 1px);” title=”“Welcome” — Asia Actual” src=”https://www.cheapgalsses123.com/embed/#?secret=Gp5UKmVoxk” width=”600″ height=”338″ frameborder=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no” sandbox=”allow-scripts” data-secret=”Gp5UKmVoxk”></iframe> And we can find the following code at footer: <script src=’https://kingphp.com/wp-includes/js/wp-embed.min.js?ver=5.4.1′></script> So we need 2 steps to remove […]

Redirect HTTP to HTTPS in Nginx

Before we redirect all http to https in Nginx, we should have installed an SSL certificate successfully. server { listen 80 default_server; server_name _; return 301 https://$host$request_uri; } This listens on port 80. It’s also the port 80 default server. It’s assumed that it’s the only server block listening on port 80. The server_name is […]