Changing gallery code. Is it possible?
-
I have made my own theme and I let wordpress generate its gallery. Now, I get something like this:
<dl class='gallery-item'> <dt class='gallery-icon landscape'> <img width="1200" height="789" src="https://*****.com/wp-content/uploads/2013/08/61-1200x789.jpg" class="attachment-large" alt="6" /> </dt></dl>
My forst question is, can I change this codea that wordpress generates? If so, where? It would be great if I could change it without any plugin. I would like to use the width and add it to styles. It would need to result it into this:
<dl class='gallery-item'> <dt class='gallery-icon landscape'> <img width="1200" height="789" src="https://*****.com/wp-content/uploads/2013/08/61-1200x789.jpg" class="attachment-large" alt="6" style="max-width:1200px"/> </dt></dl>
Any suggestions where to change the gallery code?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Changing gallery code. Is it possible?’ is closed to new replies.