Why is inline CSS added to images automatically? [closed]

Before you ask a question: maybe check on a other install of WP, is this the default? It is not? The problem is very often from plugins or themes. Disable plugins and switch to the default theme, current Twenty Twelve and check your problem. The current release 3.5 and 3.4* have not this insert as … Read more

Orientation of featured image in post?

Basic check of aspect ratio. Display as landscape, square or portrait if ( !has_post_thumbnail()) { return ‘Error’; } else { $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ”); $image_w = $image[1]; $image_h = $image[2]; if ($image_w > $image_h) { echo ‘landscape’; } elseif ($image_w == $image_h) { echo ‘square’; } else { echo ‘portrait’; } }

What type to upload image within theme options?

If using image radio buttons, define a directory path here is code. I hope its going work. $imagepath = get_template_directory_uri() . ‘/images/’; $options = array(); $options[] = array( “name” => __(‘Logo’, ‘prothemeus’), “desc” => __(‘Upload your logo’, ‘prothemeus’), “id” => “pt_logo”, “type” => “upload”);

Theme using masonry layout script rendering overlaped images in Google Chrome [closed]

I can’t find any reference about it but it seems Google Chrome (v 21.0.1180.60) do need specified image sizes, in image tag or passing this in css (either class or local): style=”display:block;width:333px;height:333px” Or: container.img { display:block;width:333px;height:333px } Maybe this issue has something to do with this question, but I’m not sure. They say images need … Read more

Hover images and Videos

At first blush, it appears that you are missing a colon from your else statement. Without more info, though, I cannot tell you anything else. <?php if( has_post_thumbnail() ) : ?> <div class=”image-wrapper-hover”> <?php the_post_thumbnail( ‘large’ ); ?> </div> <?php else : ?> <?php catch_video();?> <?php endif; ?>

how do i update version for super skeleton

The Super Skeleton wordpress theme appears to be a paid theme from Themeforest http://themeforest.net/item/super-skeleton-wp-responsive-minimal-beautiful/647570 so you may want to contact the developer of that theme for an updated copy if they are not offering automatic updates. You should be careful with updating the theme though because if it does not use child themes, you may … Read more

Images getting corrupt automatically

Check/fix the URLs for the images; they are relative URLs, not absolute. Use Firebug with Firefox, or use the developer tools in Chrome or Safari or IE to see what javascript is loading on your site and the errors.