blogpage: use span8 for posts without images #83

merged 4 commits into from May 27, 2013


None yet
2 participants

senlin commented Nov 16, 2012

When a post does not have a featured image and neither an image in the content the bootstrapwp_autoset_featured_img() function returns nothing. At the same time however the span2 class that the image receives if there is an image, remains.

With this commit the_excerpt gets a span8 class if there is no image at all (not featured and no other). archive.php and perhaps author.php can be adjusted in the same way, as can index.php, but in the latter this function is not yet used.

PS only the 738eb79 file is the correct version

Piet Bos added some commits Nov 16, 2012

adjust page-blog.php
adjust page-blog.php for if no thumbnail and no images in blog post
adjust page-blog.php
fixed code. if there is no the_post_thumbnail and also no attached image, then the blog page uses span8 class for the_excerpt.

rachelbaker added a commit that referenced this pull request May 27, 2013

Merge pull request #83 from senlin/master
blogpage: use span8 for posts without images

@rachelbaker rachelbaker merged commit bb63cf2 into rachelbaker:master May 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment