Tag: url in magento 2

  1. How to check if current url is homepage in Magento 2 Programmatically

    To check if the current URL is the homepage in Magento 2, follow these steps. Create the block class Declare function in template .phtml file Get output in index.php file Create the block class Directory app/code/VendorName/ModuleName/Block/Demo.php Contento of Demo.php <?phpnamespace VendorName\ModuleName\Block;class Demo extends \
    Read more

1 Item

Show per page