Darren

Set src using just CSS

Sometimes we need to change the src of an <img> element, but we don’t have access to the HTML, like when styling a plugin. But, CSS is our friend here, and we can use the url pseudo element to set the <img> src. <style> .my-class { content:url(“http://imgur.com/SZ8Cm.jpg”); }</style><img class=”my-class”> Check out this JSFiddle. Should work in …

Set src using just CSS Read More »

Change Default Image Size on Visual Composer Single Image

The Visual Composer Single Image component defaults the Image Size to ‘thumbnail’.  This really isn’t very useful, especially if your clients are using Visual Composer to build pages. An Image Size of ‘large’, ‘medium’, or even a custom image size, is much more useful. If you’ve set ‘large’ to be the same width as your main content …

Change Default Image Size on Visual Composer Single Image Read More »

WordPress redirect https to http without SSL certificate

If your website has an invalid SSL certificate for your site (perhaps your shared hosting company has a wildcard certificate), most browsers will show a warning about the validity of the certiticate. However, Google could still index your site using https: URLs, as it assumes you have a valid SSL certificate. The problem is, if people …

WordPress redirect https to http without SSL certificate Read More »