Month: August 2018
-
How to get all attributes with all available labels/options in Magento2?
I did a lot of research but could not find a solution for that. so gathered some info and created this code: (it is not the best way to do it, but it works – you can use it at least one time for quick results) the values need to be transformed if you want…
-
WordPress Dashboard – Introduction by newbie
Dashboard Panel When you will log into the administration area of your blog, you’ll see the WordPress Dashboard which will display the overview of the whole website. You can customize your needs by using some quick links such as writing quick draft, replying to latest comment, etc. Dashboard Menu The WordPress Dashboard provides a navigation menu…
-
Extracting names from given list of URLs (using regex)
let us extract name form the URL paste the URL in the notepad and press crtl+f , and select ‘regular expressions ‘ from search mode now, enter the regex in the find tab to fetch names Now, the selected name will be fetched form regex as (\1). it can work on numerous links like:- And…
-
How to install a new theme in WordPress using a compressed theme file
Follow these steps to install a new WordPress theme to your website using a compressed theme file(.zip,.tar,.rar etc): Step 1: Open the wp-content folder in the root directory of WordPress and go to the themes folder. Step 2: Upload the zip(or any other compressed file) theme file inside the theme folder. Step 3: Go back to…
-
How to remove links of a learndash course which has not started yet? without code changes
-
Simple joining of data from two different tables on basis of a common key
-
How to change WordPress user roles in MySQL database using PhpMyAdmin?
We will be editing the database rows using PhpMyAdmin tool given with cPanel by many hosting companies You can change the WordPress user roles by following the given steps: Step 1: Open phpMyAdmin on cPanel. Step 2: Open the wp_usermeta or xxx_usermeta table in the database as highlighted. (wp_ is just prefix, your table prefix…
-
Magento 2 cli commands [continued]
1. Setting GD2 as defualt image adapter from command line Magento >= 2.2 Magento >= 2.2 2. Disable Minify CSS Files option from command line Magento >= 2.2 Magento < 2.2 3. Disable Merge CSS Files option from command line Magento < 2.2