First, we create the .phtml file, say footer_menu.phtml, and place it under add/design/Young/goggles/Magento_Theme/templates/. Add the following code: Next, edit default.xml, which is under add/design/Young/goggles/Magento_Theme/layout/. Add the following code to a proper place. Run bin/magento c:f Besides the basic html code we can add in a .phtml file, we also can add php code, say: We… Continue reading How to Load Contents from A Custom Phtml File for Magento 2.4?
How to Remove H1 Tag from All CMS pages of Magento 2.3.6-p1?
Edit app/design/frontend/Eyewearca/glasses/Magento_Cms/layout/cms_index_index.xml, and add the following code: To clear the caches and run the following commands:
How to Remove H1 Tag from Categories of Magento 2.3.6?
To override inside a vendor module, the layout should be placed in app/design/frontend/mytheme/theme/Magento_Catalog/layout/catalog_category_view.xml Make sure you clear your cache etc by running:
How to set X-Cart default main category?
We all know that there are many categories for an X-Cart Based EC shop, say www.prescriptionglassesonline.net, there are at least 50 product categories of eyeglasses. A product may be added to different categories but by default, when we add a new product, the default category is assigned to a category by alphabetical order, from a… Continue reading How to set X-Cart default main category?
How to Renew SSL Certificate on Magento 2 / NGINX?
I have installed lnmp (Linux, Nginx, MySQL, and PHP) environments for www.cheapglasses.net. I use the free SSL Certificate – Let’s Encrypt. By default, LNMP will renew Let’s Encrypt automatically. Today, I found https://www.cheapglasses.net not working, and I found Let’s Encrypt failed to be renewed automatically. I googled “Magento 2 let’s encrypt auto renew failed” and… Continue reading How to Renew SSL Certificate on Magento 2 / NGINX?
What Is The Best Magento 2 Blog Extension?
What kind of Magento 2 blog extensions are the best for your Magento 2 based shop? Best Magento blog extensions should have the following functions: Seo friendly. Such a Magento blog will have a change to rank well in google.com. User friendly. People feel very happy to read the blog, theme designs nicely, and neatly.… Continue reading What Is The Best Magento 2 Blog Extension?
How to Allow or Disallow A Customer to Access Customer Area of Magento
If you use Nginx, and Linux systems for your web hosting, modify nginx.conf, and add the following code to the proper place. If you use Apache and Linux systems for your web hosting, Create a folder named “customers” under your Magento 2.4 based shop, under the newly added folder, create a file named .htaccess, and… Continue reading How to Allow or Disallow A Customer to Access Customer Area of Magento