Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm looking to change the markup of the Wordpress Gallery, so that it outputs a new set of code.

Ideally, this is what I want (a Bootstrap-based markup).

<div class="col-md-3 col-sm-4">
  <a href="img-large.jpg" class="img-link-class">
    <img class="img-responsive img-thumbnail" src="img-thumbnail.jpg" alt=""/>      
  </a>
</div>

Is there a way to do that in the functions.php file of my theme. The standard column, dt, etc.. markup is kind of annoying.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.