- This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by .
- The topic ‘Altitude Pro: centering shortcode in front page widget’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm tearing my hair out over this!
I'm using Justified Image Grid (for galleries) in conjunction with Altitude Pro. I need to canter galleries (embedded as shortcodes) in the home page widgets. But whatever I try, the galleries stubbornly remain left justified – see Our team. Is there anyone out there who can help me with this?
I can tell you why it's happening, but I can't tell you how to fix it because it appears to be coming from a plugin. There is a float:left; that is applied to #jig2 .jig-imageContainer. That class is applied to each of the images. It's inline CSS, which means it's being added by whatever plugin you're using. You've got to somehow get rid of the float:left; and use display: inline-block; instead and your images will be centered. I don't think changing your style sheet will help because inline CSS will have the priority over the style sheet. You need to figure out how to override whatever plugin or process is adding that CSS inline.
Victor, I should have got back to you sooner – my apologies. I really appreciate that you've taken the time to look at what's going on and pass on your observations. Someone else in the StudioPress community (Brad West) finally helped me solve things. The answer was to add "last_row=center" to the shortcode. Anyway, thanks for your help.
© 2023 WPEngine, Inc.