Skip to content

Instantly share code, notes, and snippets.

azraf / mws_wp_img_disappear_fix.php
Created May 21, 2021
I got an issue with a client website that all images are getting disappear class automatically. I dont have time to check all the codes. So I just make that class opacity function override. Best practice is to remove the main, class, but if you need some time to fix that, you may use this kind of not-recommended tricks to buy you some time.
View mws_wp_img_disappear_fix.php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
* Plugin Name: Image Disappear Fix
* Plugin URI:
* Description: Image Disappear Fix for "disappear" Class
* Version: 1.0
* Author: Azraf
* Author URI:
* Author email:
azraf / config.json
Created Dec 10, 2014
View config.json
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
View apps.js
/*jslint node: true */
"use strict";
var express = require("express"),
consolidate = require("consolidate"),
Handlebars = require("handlebars"),
fs = require("fs");
var app = express();