AngelaGough Posted August 20, 2022 Share Posted August 20, 2022 Site URL: https://hi-sam.org/treatment-directory I'm looking for a way to make the entire summary block item click through to the original blog post. As it is now, only the title is linked, but I'd like to be able to click anywhere in the box to link to the blog post. Thanks for your help! Link to comment
derricksrandomviews Posted August 20, 2022 Share Posted August 20, 2022 (edited) Paste this into advanced header code injection which requires a business plan, it has worked with 7.0 but does not work with lazy summaries: $(".summary-item").click(function() { window.location = $(this).find("a").attr("href"); return false; }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> Edited August 20, 2022 by derricksrandomviews Link to comment
AngelaGough Posted August 21, 2022 Author Share Posted August 21, 2022 12 minutes ago, derricksrandomviews said: Paste this into advanced header code injection which requires a business plan, it has worked with 7.0 but does not work with lazy summaries: $(".summary-item").click(function() { window.location = $(this).find("a").attr("href"); return false; }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> Thanks for the suggestion. I do have Lazy Summaries, though, so does not work for me unfortunately. derricksrandomviews 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment