Activity feed difficulties
-
running latest wp and bp installs, Kleo theme.
The animation in the activity feed doesn’t play nice with google. If you’re half way down the page and reload, you only see a blank background. You have to scroll quite far up for the animation to trigger content. When you’re starting at the top and scrolling down, the animation jams ans you have to wiggle the screen up and down to get content to show.
I’ve tried deactivating the animation, but the methods seem a bit hackey. What is the elegant way to do this?
Second, the bp_activity_content_body() on the entry page, part of the activity loop, pulls full sized featured image rather than a thumbnail. I’m using
<?php $blogpost_id = bp_get_activity_secondary_item_id(); if ($blogpost_id) : if (has_post_thumbnail( $blogpost_id ) ) : $theimg = wp_get_attachment_image_src( get_post_thumbnail_id( $blogpost_id ) ); ?> <a href="<?php echo get_post_permalink($blogpost_id); ?>"> <img style="thumbnail" style="width:100%;" src="<?php echo $theimg[0]; ?>"></a> <?php endif; endif; bp_activity_content_body(); ?>
…to fetch the thumbnail but now I need a way to not have bp_activity_content_body() place the full sized feature image in the excerpt.
- You must be logged in to reply to this topic.