Carousels slider breaks when js merge in Magento 2 You should move slider script to the head tag of the page. To debug Disable JS… Read More →
Follow the steps to fix “invalid Domain for site key” issue in Magento 2 1. Go to recaptcha admin (https://www.google.com/recaptcha/admin) 2. Choose reCAPTCHA Type (reCAPTCHA… Read More →
Enable template-hints with command in Magento 2 php bin/magento dev:template-hints:enable php bin/magento dev:template-hints:disable Remove Cache chmod -R 777 var/ pub/ generated/ php bin/magento cache:clean php… Read More →
Find exception or error logs in Magento 2 ?
May 13, 2022
Error logs in Magento 2 Set the developer mode php bin/magento deploy:mode:set developer //You can check the errors for var/log and var/reports folder //You can… Read More →
Reduce the original product image size to 1000×1000 dimension in Magento 2 Use imagemagick. for f in find . -name “*.jpg” do convert $f -resize… Read More →
What is my magento admin login url
May 13, 2022
Run the following command to see Magento admin login url php bin/magento info:adminuri You can also view the Admin URI in <your Magento install dir>/app/etc/env.php…. Read More →
How to get date of tomorrow in magento2
May 13, 2022
Object Manager Method to get date of tomorrow in magento2 : $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objDate = $objectManager->create(‘\Magento\Framework\Stdlib\DateTime\DateTime’); $date = $objDate->date(‘Y-m-d’); $nextdate = $objDate->date(‘Y-m-d’, strtotime($date.” +1… Read More →
Magento 2 log : Replacement for Mage::log method
May 13, 2022
Magento 2 log : Replacement for Mage::log method protected $logger; public function __construct(\Psr\Log\LoggerInterface $logger) { $this->logger = $logger; } //Show $this->logger->info($message); $this->logger->debug($message); In magento2… Read More →
Author Templates – WordPress | Author page
May 13, 2022
WordPress author page Linking to Author Pages from Posts <p>Written by: <?php the_author_posts_link(); ?></p> List of Authors with Links <h2>List of authors:</h2> <ul> <?php wp_list_authors(); ?> </ul>… Read More →
Simple WordPress Loop
May 13, 2022
The Loop <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); <!– Test if the current post is in category 3. –>… Read More →