Still fighting with the problem.
Here is a picture of the source code as given by firefox to the screenshot above.
http://325.dk/images/kildekode.jpg
Is it possible to overrule the “Style” created by the Gallery by my own CSS?
I am using pictures and not reference to the website because I am still working with the theme, adapting plugins, adjusting the CSS, etc.
kind regards
Mikael Boldt
I have now added this to the gallery short cut:
[gallery columns="4" itemtag="div" icontag="span" captiontag="p"]
don’t ask me what it means I copied it from the bottom of http://codex.wordpress.org/Using_the_gallery_shortcode
But it is working 🙂
boldt,
did you ever figure out how to have the number of comments on a particular photo appear in the gallery display? I would love to have that feature.
My second problem – number of comments under the thumb – is still unsolved.
My first problem is also a little tricky because I cannot remember all the additional text when I am making a new gallery.
It would be nice if I could add these permanent codes (first and second question) somewhere without worrying whether the code disappear during next update.
Please consider this as a request for improvement of the gallery function
Well, I have now changed some of the code in the gallery, because I am tired of typing the text mentioned in my previous post.
Here is what I have done:
1. open \wp-includes\media.php
2. find and change the code in line 355-358 (itemtag, icontag, captiontag, and columns) to the wanted
extract(shortcode_atts(array(
'orderby' => 'menu_order ASC, ID ASC',
'id' => $post->ID,
'itemtag' => 'div',
'icontag' => 'span',
'captiontag' => 'p',
'columns' => 4,
'size' => 'thumbnail',
), $attr));
Now I am able to use [gallery] shortcut without any addition correction, which makes it much faster to utilise the gallery function.
The “backside of the coin” is that I have to correct every time there is an update.