Forum Replies Created
-
AuthorReplies
-
Robert Piller
ParticipantNo biggie, but I still see 3D Carousel as a Slider Type option in the Themeblvd Sliders plugin with Jump Start 2.1.
Robert Piller
ParticipantOh. How bizarre. In all browsers I see triangles and x’s in the input field:
I wonder if it’s somehow my system. I’ll check it out again after restarting my computer.
May 2, 2016 at 9:44 pm in reply to: Placeholders and fourth-level items destroy mega menu in IE9 and lower #25839Robert Piller
ParticipantHmm, if it’s working for you, then maybe there’s something weird happening with my setup. I was using a fourth level for “Iron” and “Holdbacks” in my Hardware mega menu: http://advanced968.inmotionhosting.com/~onadrape/. No worries 🙂
Robert Piller
ParticipantI see that too with frame=”true”. What do you see when you set frame=”false”?
Robert Piller
Participant1 – I don’t think the width parameter is the problem; I think the problem is that the lightbox has display: block. Here’s my new code:
[lightbox link="http://www.pillerdesigns.com/wordpress/wp-content/uploads/2012/12/Slide101.jpg" thumb="http://www.pillerdesigns.com/wordpress/wp-content/uploads/2012/12/Slide101-300x199.jpg" width="300" align="left" title="This is a caption" frame="false" icon="image" caption="This is a caption"]
Notice what http://www.pillerdesigns.com/wordpress/ looks like now. So, unless I want to use align=”center” (which I don’t), the lightbox shortcode doesn’t look right with a caption.
2 – The images are thumbnails auto-generated from the larger versions and they won’t be wide enough unless square, so that’s what I’ll use.
3 – I don’t think I have a “gallery page”—I just inserted a gallery on my homepage with the Add Media button. Yes, the hover icon is fine; it’s the lightbox caption which requires my custom JS.
In any case, I’ve found workarounds for my actual use scenario, but I wanted Jason to know about these issues in case they seemed worth addressing.
Robert Piller
ParticipantHere is the code for the first page:
Welcome! [lightbox link="http://www.pillerdesigns.com/wordpress/wp-content/uploads/2012/12/Slide101.jpg" thumb="http://www.pillerdesigns.com/wordpress/wp-content/uploads/2012/12/Slide101-300x199.jpg" title="Lightbox Example" frame="false" icon="image"] [gallery link="file" size="medium" ids="85,87,86"]
The icon is off-center (issue A), and the gallery captions don’t appear in lightboxes (issue B). Let me know if you need to log in, but this is a default installation with no customizations so I’m not sure what would be different.
Robert Piller
ParticipantThanks for the shortcode Angela. Unfortunately, the popup icon indicator is not centered on the image, as you can see with the hot air balloon (top image) here:
http://www.pillerdesigns.com/wordpress/
It also seems that Jump Start lightboxes don’t show captions in the lightbox for gallery images, as you can see in the example above (bottom three images), which is a fresh installation of WordPress and Jump Start.
Captions do appear in product gallery lightboxes, I now realize, but the popup icon indicator is off-center if the thumbnail isn’t square:
http://www.pillerdesigns.com/wordpress/product/best-product-ever/
Robert Piller
ParticipantThanks for the idea. It works!
function my_post_data( $post_data, $form, $entry ) { if ( $form['id'] != 4 ) { return $post_data; } $post_data['meta_input'] = array( '_tb_meta' => 'hide', '_tb_thumb' => 'hide', '_tb_thumb_link' => 'post' ); return $post_data; } add_filter( 'gform_post_data', 'my_post_data', 10, 3 );
Robert Piller
ParticipantAh, of course! It did not occur to me to use $_GET. So, this works in manual cases:
function my_post_meta( $setup ) { if ( $_GET['post_type'] == 'portfolio_item' ) { $setup['options']['tb_meta']['std'] = 'hide'; $setup['options']['tb_thumb']['std'] = 'hide'; $setup['options']['tb_thumb_link']['std'] = 'post'; } return $setup; } add_filter( 'themeblvd_post_meta', 'my_post_meta' );
However, the plot thickens. The whole point of setting these defaults is that I’m using Gravity Forms to create new posts from visitors’ form submissions, and I want these pending posts to be ready to Publish when they are sent to my client for review. Unfortunately, while these defaults are correctly set if I manually click “Add New Gallery”, or if I remove the conditional from my_post_meta(), the defaults are not correctly set when Gravity Forms generates a new post from form input. This is because Gravity Forms doesn’t load a URL with “/post-new.php?post_type=portfolio_item” in it—Gravity Forms creates the post with its own functions. Is there some deeper way to set these options in this case? If not possible for only new gallery posts, perhaps a way to set the options globally, for all gallery posts? I’m guessing your my_meta_boxes() function doesn’t really apply here, and in any case, I tried (correcting “design-gallery” to “portfolio_item”) and it had no effect.
Robert Piller
ParticipantThis is in functions.php and I’m filtering themeblvd_post_meta, which affects the back end interface when I click “Add New Gallery”, not the front end (at least not until the new post is published). I’ve tried with
if ( 'post' == get_post_type() ) {
and then clicking “Add New Post” and again, the post meta defaults don’t get set. It only works (for blog posts and for design-gallery posts) if I take out the conditional. But I don’t want to set defaults for blog posts—only for design-gallery posts.
Robert Piller
ParticipantThis doesn’t work, presumably because get_post_type() is intended for use in the loop:
function my_post_meta( $setup ) { if ( 'design-gallery' == get_post_type() ) { $setup['options']['tb_meta']['std'] = 'hide'; $setup['options']['tb_thumb']['std'] = 'hide'; $setup['options']['tb_thumb_link']['std'] = 'post'; } return $setup; } add_filter( 'themeblvd_post_meta', 'my_post_meta' );
Robert Piller
ParticipantGood call on 992px being the breaking point, not 768px. I’ve updated the CSS and JS. Thank you.
I’m assuming by “v2” you mean theme version 2, and I’m using the latest JumpStart: version 2.0.4.
I’m not wanting a fixed footer, as in your example. I’m wanting what’s called a “sticky footer”, which means that when the window is tall but the content area is short, the footer appears at the bottom of the window, not the bottom of the content area: http://cl.ly/fVsP. It’s something I’ve had to do for multiple sites.
Anyway, it’s working, but if you foresee any issues or have a cleaner method, do tell.
Robert Piller
ParticipantOkay, awesome, I’ve hooked the social sharing buttons to themeblvd_main_end, and they work great on pages. However, the URL that gets shared on product category archives is not the archive URL, but rather the URL of the last product in the loop:
How can this be fixed? Thank you muchly.
Robert Piller
ParticipantHey Jason,
Let me know if you release an update that allows someone to add a title to anchors in the WordPress editor to set the lightbox captions.
For anyone who wants captions on their WordPress default, product, or portfolio gallery lightboxes, here’s a script:
$(window).load(function() { $("a.tb-thumb-link").each(function() { var $this = $(this); if ( $this.prop('title') ) { return; } $this.prop('title', function() { var imgalt = $this.children('img').attr('alt'); var imgtitle = $this.children('img').prop('title'); if ( imgalt == '' ) { return imgtitle; } else { return imgalt; } }); }); });
Robert Piller
ParticipantWell, I fixed the issue by removing
rel="attachment wp-att-1049"
from the anchor tag. So I guess I caused the issue by inserting an image linked to the media file without a caption and then adding a caption. I would consider this a bug. I also can’t add title=”desired lightbox caption” to the anchor tag without breaking the lightbox.
I was going to start a separate thread for this, but it would be great if the lightbox captions would automatically read from WordPress image and gallery image captions. Is this coming soon or easy to do?
Thank you kind sir.
-
AuthorReplies