deutschwulf
Forum Replies Created
-
Forum: Plugins
In reply to: [Infinite-Scroll] How to add a "Back To Top" button ?I just hardcoded one into my website. The following snippet slides the button in when you scroll past 800px, and then when the button is clicked it rolls you back up to the top of the page.
$(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 800) { $('#scrolltotop').stop().animate({ right: '21px' }); } else { $('#scrolltotop').stop().animate({ right: '-42px' }); } }); $('#scrolltotop').click(function(){ $("html, body").animate({ scrollTop: 0 }, 500); return false; }); });All you need to do is include that in the head of your site, and create a <div> with the id of #scrolltotop somewhere on your page (I created a position:fixed element. I recommend you do it that way.)
My pleasure! Thanks for all of the help with this. Much appreciated.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Creating a custom searchI’m trying to accomplish exactly the same thing, but I’m afraid that I’m having difficulty implementing it. I’ve tried:
$args = array( 'meta_key' => '_year', 'meta_value' => '2010' ); $the_query = new WP_Query($args); relevanssi_do_query($the_query);I’ve tried relevanssi_query_filter() as well with no luck at all. Could you please elaborate on the implementation of this?
Thank you!
Forum: Plugins
In reply to: [User Photo] Front EndI’ve got a similar problem. I was able to easily retrieve the image with this:
<?php userphoto_thumbnail($current_user->id) ?>However, I’m still struggling trying to upload a photo from the frontend (though your delete solution works, kudos!)