Forum Replies Created
-
AuthorPosts
-
July 14, 2014 at 3:16 pm in reply to: Customizing CSS on native/builtin WP Gallery – Genesis Hook available? #114300ceohqMember
Thanks for chiming in Brad! I have actually been reading a lot of material from your site ironically including this article:
http://wpsites.net/web-design/customize-native-wp-gallery-images-displaying-in-theme-locations/
It seems that the #gallery-2 will change with each gallery added ( -3, -4, etc) so the styling needs to be applied to "all" galleries generated since i want the same look and feel to be throughout the entire site.
Me, and several friends I've even tried to pick the brains of, have tried adding the code you noted above, and similar type code mentioned in the article on your site, in the style sheet and wp does not recognize it until you add the code below to the child theme functions.php:
add_filter( ‘use_default_gallery_style’, ‘__return_false’ );
Once you do that, you can create css code, but the above line also then eliminates all of the formating that affects picking # of columns, etc when all I want to do is change the hyperlink and borders type stuff, not essentially rewrite the entire gallery coding.
I even tried following this tutorial below. The guy seems to be on the right track, but there still seems to be some core coding missing as all column formatting disappears and just streams everything into one long single column. One site warned against doing this much moving of the core wp functionality to the child theme, as it would then impact any plugin that works with galleries potentially.
http://theme.fm/2011/06/how-to-style-your-wordpress-gallery-43/ (See section on Using CSS to style your galleries)
I've spent a few hours every day for weeks trying to get this to work and it just seems it really shouldn't be this hard 🙂
Apparently though, a lot of other people have had the same issue as i've found lots of people trying to do something similar. And nothing, at least to my level of understanding, seems to work 100% or has enough additional details that I know what I need to add for my specific site.
If you have any ideas, please let me know, or if you recognize what may be missing from the theme.fm tutorial it may just be a few lines or something that need to be added. One challenge seems to be that galleries has evolved over the last few years in WP core so tutorials are not necessarily matching the lastest version of WP.
-
AuthorPosts