Forum Replies Created
-
AuthorPosts
-
December 6, 2017 at 5:44 am in reply to: Thin top bar appears in mobile, same color as socket #885363
Much appreciated John! What’s odd is I didn’t need this before, but some theme setting I must have changed all of a sudden make it appear.
Gotcha! Thank you for putting up with my “doh” moment.
Figured it out. I didn’t enable the child theme. I feel like a dope. :P
Hi Mike,
Thanks for the reply! I actually did use a child theme and had a functions.php in there with that same exact code. I see you added yours to the parent theme.
I’m guessing for some reason my child theme’s functions.php is not being used…
Much appreciated,
Eric
Sure. Thank you for taking a look.
September 12, 2017 at 7:12 pm in reply to: Change post featured image link to post itself rather than in lightbox #851195Yikes, so I figured it out. The user was setting all their posts to a format of “image” rather than “standard”. My bad for overlooking it. Nevertheless, I appreciate the replies!
September 12, 2017 at 6:23 pm in reply to: Change post featured image link to post itself rather than in lightbox #851156Anyone have an alternative solution that changes the featured image link to the post itself? I’m trying to figure out which theme template file generates the featured image but am having no luck. Thanks in advance!
September 12, 2017 at 4:06 pm in reply to: Change post featured image link to post itself rather than in lightbox #851060Hi Victoria,
It did, but also ended up affecting the “Related Posts” images at the bottom, messing that up a bit.
September 12, 2017 at 11:24 am in reply to: Change post featured image link to post itself rather than in lightbox #850951Hi Jordan,
Thank you for the reply. I used this filter in functions.php:
add_filter( 'post_thumbnail_html', 'wpb_autolink_featured_images', 10, 3 ); function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) { $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>'; return $html; }
but unfortunately that adversely affects the “Related Posts” section at the bottom. I’ve commented out that code for now. Any ideas?
Thanks!
- This reply was modified 7 years, 3 months ago by ecdoesit.
Thanks for the reply! I’ll update this thread if I find a workaround or code solution.
April 7, 2017 at 1:14 am in reply to: Oversized logo that still works with shrinking sticky header #773616Well I ended up commenting out the max-height change for the logo and added in lines that change the logo class to hide when scrolling.
if(shrinking && !isMobile) { if(st < el_height/2) { newH = el_height - st; if(st <= 0){ newH = el_height; } av_change_class(header, 'remove', 'header-scrolled'); av_change_class(logo, 'remove', 'hide'); //header.removeClass('header-scrolled'); } else { newH = el_height/2; //header.addClass('header-scrolled'); av_change_class(header, 'add', 'header-scrolled'); av_change_class(logo, 'add', 'hide'); } if(st - 30 < el_height) { av_change_class(header, 'remove', 'header-scrolled-full'); av_change_class(logo, 'remove', 'hide'); } else { av_change_class(header, 'add', 'header-scrolled-full'); av_change_class(logo, 'add', 'hide'); } elements.css({'height': newH + 'px', 'lineHeight': newH + 'px'}); // logo.css({'maxHeight': newH + 'px'}); }
- This reply was modified 7 years, 8 months ago by ecdoesit.
-
AuthorPosts