I needed to enable the widgets. <admin> Widgets > Screen Options > Enable
Thursday, July 7, 2016
Friday, June 17, 2016
Gulp image sprite css gulp.spritesmith
npm install --save-dev gulp.spritesmith
var gulp = require('gulp');
var spritesmith = require('gulp.spritesmith');
gulp.task('sprite', function () {
var spriteData = gulp.src('img/sprites/*.png')
.pipe(spritesmith({
/* this whole image path is used in css background*/
imgName: '../img/sprite.png',
cssName: 'sprite.css'
}));
spriteData.img.pipe(gulp.dest('img'));
spriteData.css.pipe(gulp.dest('css'));
});
Enjoy Comments are welcome
Wednesday, April 27, 2016
CSS multiline text with ellipsis
HTML
<h2>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et.</h2>
Css
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 3em 2em;
font-family: 'Open Sans', Arial, sans-serif;
color: #cf6824;
background: #f7f5eb;
}
h2 {
display: block;
/* Fallback for non-webkit */
display: -webkit-box;
max-width: 400px;
height: 145.6px;
/* Fallback for non-webkit */
margin: 0 auto;
font-size: 26px;
line-height: 1.4;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
<h2>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et.</h2>
Css
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 3em 2em;
font-family: 'Open Sans', Arial, sans-serif;
color: #cf6824;
background: #f7f5eb;
}
h2 {
display: block;
/* Fallback for non-webkit */
display: -webkit-box;
max-width: 400px;
height: 145.6px;
/* Fallback for non-webkit */
margin: 0 auto;
font-size: 26px;
line-height: 1.4;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
Tuesday, February 23, 2016
Thursday, September 24, 2015
WC Vendor Allow vendors to view all media
Hi friends
If you are using Wc Vendor plugin and
If you want Allow vendors to view all media library
Step 1
Please open file in editor
wp-content > plugins > wc-vendors > classes > admin > class-admin-users.php
And find filter
Filter user attachments so they only see their own attachments
And remove
Filter Code under this filter
If you are using Wc Vendor plugin and
If you want Allow vendors to view all media library
Step 1
Please open file in editor
wp-content > plugins > wc-vendors > classes > admin > class-admin-users.php
And find filter
Filter user attachments so they only see their own attachments
And remove
Filter Code under this filter
Tuesday, August 25, 2015
OPENCART ADMIN BLANK PAGE
Our store uses the Script Opencart. It was showing blank page while tried to access Admin page.
I have pasted the following lines in Index.php of Admin directory and checked for errors.
ini_set(‘display_errors’, 1);
ini_set(‘log_errors’, 1);
error_reporting(E_ALL);
I have pasted the following lines in Index.php of Admin directory and checked for errors.
ini_set(‘display_errors’, 1);
ini_set(‘log_errors’, 1);
error_reporting(E_ALL);
After that while reloading the Admin page, I found the error was in the directory path. After renaming the correct directory name in Config.php inside Admin folder, it started working fine..
Finally the blank page problem solved!
Comments Are welcome.
Finally the blank page problem solved!
Comments Are welcome.
Wednesday, August 27, 2014
Add a custom currency / symbol
Hi
To add a custom currency paste this code in your theme functions.php file and replace Currency Name with your currency and symbol with own symbol
To add a custom currency paste this code in your theme functions.php file and replace Currency Name with your currency and symbol with own symbol
add_filter( 'woocommerce_currencies', 'add_my_currency' );function add_my_currency( $currencies ) {$currencies['ABC'] = __( 'Currency name', 'woocommerce' );return $currencies;}add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);function add_my_currency_symbol( $currency_symbol, $currency ) {switch( $currency ) {case 'ABC': $currency_symbol = '$'; break;}return $currency_symbol;
}
Enjoy Comments are welcome !!
Subscribe to:
Posts (Atom)