How to Set limit to Compare product in Magento 2?

How to Set limit to Compare product in Magento 2?

As we know that in magento 2 we can add as many product to compare, but in this case we can set limit and add only 4 products in compare section so that it would be easy to compare and check two products. Step 1 : Create a module named as app/code/Company/Catalog Step 2 : Create Registration.php Step 3 : Create a file inside following […]

Read More

How to Add Custom Field in WordPress Post?

How to Add Custom Field in WordPress Post?

Meta-data is taken care of with key/value sets. The key is the name of the meta-data component. The value is the data that will show up in the meta-data list on every individual post that the data is related with. Function Reference : add_post_meta() For Example : We’ll include two custom fields, one called “At present Reading” and the other “Author Name”. The accompanying guidelines […]

Read More

How to Create Simple WordPress Plugin?

How to Create Simple WordPress Plugin?

To create simple plugin in wordpress, Create a folder in <wordpressrootdirectory>/wp-content/plugins/ Create a folder of any name. for eg:Test Inside test create a file name plugin.php and add following code. <?php /**Now go to settings/Plugin in backend your plugin will be shown in the list of plugins just click on activate button to enable your plugin. * Plugin Name: My Plugin Name * Plugin URI: […]

Read More

How to create Responsive Web Design with Media Query Code (CSS)?

How to create Responsive Web Design with Media Query Code (CSS)?

With the expanding number of cell phones, working systems and their renditions, screen sizes and their resolutions, the requirement for versatile programs to get to sites likewise develops. The test then is to guarantee that a solitary form of the source code of UI plans on the server-side can render the site page effectively on various screen sizes. In this manner, versatile empowering web applications […]

Read More