Fallback for missing srcset images

We did figure out a workaround for this problem, If you are using a plugin like Regenerate Thumbnail try to deactivate first some plugins that will affect your images when you regenerate new image thumbnails like ewww image optimizer. make sure that the original image width is more than the image size you set on … Read more

Mobile issue – website isn’t properly detecting screen size [closed]

Your primary menu container is set to left: 5000px; witch stretches the width of the page. You can find this style directive in …themes/sunstone-bookkeeping/css/mobile.css on line 66. @media screen and (max-width: 600px) .nav-menu { position: absolute; left: 5000px; } One way to fix this is to add the following styles to the parent element: .menu-menu-1-container … Read more

Making footer widgets responsive

Set the width of the div to 100% and remove the float for the media query used for smaller screens like this: @media screen and (max-with 600px){ .widget-area{ float: none; width: 100%; } } And for the desktop view: @media screen and (min-with 600px){ .widget-area{ float: left; width: 25%; } } BTW, this is just … Read more

Removing height and width from images with a caption

Here is another possibility, it alters the image markup when you select an image to add to your content in the editor add_filter( ‘image_send_to_editor’, ‘remove_img_attribute’, 10, 8 ); function remove_img_attribute( $html, $id, $caption, $title, $align, $url, $size, $alt ) { $imagetpl=”<figure> <a href=”https://wordpress.stackexchange.com/questions/129666/%s” title=”https://wordpress.stackexchange.com/questions/129666/%s”><img src=”https://wordpress.stackexchange.com/questions/129666/%s” alt=”https://wordpress.stackexchange.com/questions/129666/%s” class=”img-responsive %s” /></a> %s </figure>”; $figcaption = (!empty($caption)) ? … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)