Internet

CORS policy: No ‘Access-Control-Allow-Origin’

Font from origin domain.dev has been blocked… (CORS and browsersync) If you are getting issue fonts are blocked in web client CORS then below code will help you. Use the code in .htaccess file and problem will be resolved 🙂 # Allow access from all domains for webfonts. <IfModule mod_headers.c> <FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css)$”> Header set Access-Control-Allow-Origin “*” …

CORS policy: No ‘Access-Control-Allow-Origin’ Read More »

Know android codes for mobile device

Know android codes for mobile device : 1- For IMEI NUMBER : *#06# 2- for Ram *#*#3264#*#* 3- Phone service menu *#0*# 4- Battery Status *#0228# 5- phone service mode *#9090# 6- Battery use or device related information *#*#4636#*#* 7- Camera related inforamtion *#*#34971539#*#* 8 – Software/Hardware information *#12580*369#

Redirect all url to https

If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected. Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] …

Redirect all url to https Read More »

How to change length of post excerpt in wordpress theme

In this case here is little code and that will help!! You will have to use the code in functions.php file /* Changed excerpt length to 200 words*/ function your_code_excerpt_length( $length ) { return 20; } add_filter( ‘excerpt_length’, ‘your_code_excerpt_length’, 200 ); If you are not ok with the limit of 200, you can change to …

How to change length of post excerpt in wordpress theme Read More »

How to enable error reporting in Magento2

Here is the tip, how you can enable magento error reporting in magento 2 Connect FTP OR login into cpanel account and go to the following directory pub/errors find the local.xml.sample and rename to local.xml and also on magento root folder find index.php and put the display error code at the bottom error_reporting(E_ALL); ini_set(‘display_errors’, 1);