March 14, 200917 yr I asked these questions a the Wordpress support forums, but didn't get a reply to either question. I am hoping someone here might be able to help. 1. Is there a way to format the text in the default Wordpress 2.7 gallery? eg, on a gallery page the text under each thumbnail is centered. I would like to left justify it. I am wondering if I can format the font size/colour etc as well. Are there any of the documents/style sheets I can access to do this? If so where are they? 2. What is the easiest way to make Lightbox work with the gallery? I have lightbox 2 installed and it works fine when posting images. But it does not work in the gallery. I tried the gallery-plus plug-in, but my gallery wouldn't show up at all after activating it. Anyone have any other suggestions? Thanks a ton.
March 14, 200917 yr Hey I'm not an expert, but have customised two blogs recently. I can answer 1) - yes you can edit the css. If you login to the admin page of your wordpress blog, there is an option on the left hand side; appearance..inside that otion edit. You can edit the stylesheet (style.css) to do what you are suggesting. I am assuming you have installed wordpress onto your computer and are not using the wordpress.com blog which I think you can only edit the header image and content. Does that answer the question? http://www.wpdesigner.com/2007/02/19/so-yo...ess-themes-huh/ Look at this link for a nice introduction to customising wordpress and explaning which bits are editable. For 2) I would say it should be possible to use lightbox ....you can just insert your links to the files in the header.php file(also accessible in the same way as the css file), and then insert your images with the [lightbox] either into the main index template, single or page.php files. I'm not as hot on this part so best refer to the above tutorial. I'm not sure if there is any reason lightbox wouldn't work in wordpress but if it doesn't I am pretty sure there is an alternative plugin or something for you to use. I hope this helps
March 14, 200917 yr Not sure about the Lightbox thing - I'm only just getting into WP myself. But I'm sure you can customise your gallery. Within an hour of following the (multi-page) article linked below, I had built a custom theme and was busy styling it. It's the best WP theme/style tutorial I've seen anywhere, and may be useful to you. Don't be fooled by the photoshopped mustache - this guy knows his stuff, and knows how to explain it. http://www.wpdesigner.com/2007/02/19/so-yo...ess-themes-huh/
March 15, 200917 yr Author Hey I'm not an expert, but have customised two blogs recently. I can answer 1) - yes you can edit the css. If you login to the admin page of your wordpress blog, there is an option on the left hand side; appearance..inside that otion edit. You can edit the stylesheet (style.css) to do what you are suggesting. I am assuming you have installed wordpress onto your computer and are not using the wordpress.com blog which I think you can only edit the header image and content. Does that answer the question? http://www.wpdesigner.com/2007/02/19/so-yo...ess-themes-huh/ Look at this link for a nice introduction to customising wordpress and explaning which bits are editable. For 2) I would say it should be possible to use lightbox ....you can just insert your links to the files in the header.php file(also accessible in the same way as the css file), and then insert your images with the [lightbox] either into the main index template, single or page.php files. I'm not as hot on this part so best refer to the above tutorial. I'm not sure if there is any reason lightbox wouldn't work in wordpress but if it doesn't I am pretty sure there is an alternative plugin or something for you to use. I hope this helps I know you CAN edit the CSS. The problem is, I need to know which CSS page the gallery uses. I know you can access your themes' CSS in the Design section, and I do edit my themes that way. But I think the Gallery function (WP 2.5 and up) would be somewhere in the core. And it may be a php file that needs editing, not the CSS. But I have no idea where to look, which is why I am asking if anyone knows where Gallery information is stored. Also lightbox does work fine in Wordpress. It's just an issue of having it work with the Wordpress Gallery. Which again, requires me knowing which pages to look at to edit. When you install a lightbox plugin in Wordpress it automatically adds it to all images you post. But, it doesn't automatically add it to the Gallery. I am guessing there is a plugin to fix this issue as well, I am just having problems finding it. If I make a post, and add an image to it Lightbox is working fine. If I make a Gallery, it's not working. So thanks for the suggestions so far, but I am in need of a little more specific advice. Zig, I will look through you link and see if it has anything related to the Gallery function. Thanks.
March 15, 200917 yr Just go back to general principles, or "brute force"... Open your gallery page, do a view source, find your photo captions in the source code, look at what class they have been given, then do a "find in files" in your whole site to find which CSS file is used to declare that class. If there are no instances at all, then it means that although the gallery code is being helpful and giving its elements classes, it's up to you to style them. So you could put whatever new declarations you need into the style.css folder in your theme.
March 15, 200917 yr Author Hey guys. I found a solution to the Lightbox problem. My hosting company uses the "easyapps' setup to install Wordpress. I noticed the version was a little out of date. I did a manual update. The updates in the gallery version fixed any issues with Lightbox. The gallery is just way more configurable in the newest version. So now I just need to play around with the CSS to see if I can figure out how to tweak the formatting a little more.
Create an account or sign in to comment