Giter Site home page Giter Site logo

Comments (3)

philcryer avatar philcryer commented on July 28, 2024

Also, I've now tried two other twitter-bootstrap related themes, Roots http://www.rootstheme.com/ and StrapPress http://braginteractive.com/bootstrap/ - both did not have the issue; the image alignment and captioning worked as I set it. I'm looking over the CSS for wordpress-bootstrap now to try and find the overriding element that must be canceling out the intended behavior.

from wordpress-bootstrap.

philcryer avatar philcryer commented on July 28, 2024

I've fixed this by adding the following block to the style.css, but it also could be set via the Theme Options > Other Settings

/*Image alignment and Caption*/
#content .wp-caption{background:#F5F5F5;line-height:18px;margin-bottom:20px;text-align:center;padding:4px;}
#content .wp-caption img{margin:5px 5px 0;}
#content .wp-caption p.wp-caption-text{color:#888;font-size:12px;margin:5px;}
#content .attachment img{max-width:620px;}
#content .alignleft,#content img.alignleft{display:inline;float:left;margin-right:24px;margin-top:4px;}
#content .alignright,#content img.alignright{display:inline;float:right;margin-left:24px;margin-top:4px;}
#content .aligncenter,#content img.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto;}
#content img.alignleft,#content img.alignright,#content img.aligncenter{margin-bottom:12px;}
#content .attachment img {display: block;margin: 0 auto;}

Note that I used #F5F5F5 as the background color, which is the same as the default Hero background color.

from wordpress-bootstrap.

philcryer avatar philcryer commented on July 28, 2024

Since this over-rides default Wordpress behavior you might want to add it to the theme.

from wordpress-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.