jholmertz Posted October 12, 2023 Posted October 12, 2023 Hello, I've inserted an anchor link into my site: <div id="jumptopartners"></div> And successfully added it to a link: https://www.[site].org/partners/#jumptopartners However, I'd like to go a step forward and show only a category of partners. How do I add the anchor link to https://www.[site].org/partners?category=Sustainable Community Development? Thanks in advance for any assistance.
tuanphan Posted October 15, 2023 Posted October 15, 2023 You mean you want to add anchor link to category page so when you access the category link with anchor, it will scroll to corresponding section on category page? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
tuanphan Posted October 24, 2023 Posted October 24, 2023 On 10/21/2023 at 12:10 AM, jholmertz said: Yes, that is correct. Can you share link to page where you use category? We can check/test code easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
jholmertz Posted October 26, 2023 Author Posted October 26, 2023 Unfortunately, it's behind the membership paywall so I cannot.
LoriH Posted July 29 Posted July 29 (edited) On 10/23/2023 at 8:21 PM, tuanphan said: Can you share link to page where you use category? We can check/test code easier Hello tuanphan- I am trying to achieve a similar thing described by jholmertz. I have set up a blog page where the posts are preceded by other sections of content. I introduce the blog posts (there are only four in total right now, for testing) with buttons for specific post categories. Because the blog posts are so far down the page, when someone clicks on a specific category, I want the page to refresh to where the blog posts are rather than popping the user to to top of the page. Therefore, I set up an anchor link [https://www.radiantrosehealing.com/blog/#blog-cats] just above that region and have combined the anchor link with the category link [https://www.radiantrosehealing.com/blog?category=Resources/#blog-cats]. For me, at least, the anchor aspect works perfectly—the page refreshes to the blog posts region. The category aspect, however, does not—no posts get loaded! Can you see what I'm missing? [The password to that currently hidden page is "NorthStar".] Edited July 29 by LoriH Clarification
tuanphan Posted November 28 Posted November 28 On 7/30/2024 at 4:08 AM, LoriH said: Hello tuanphan- I am trying to achieve a similar thing described by jholmertz. I have set up a blog page where the posts are preceded by other sections of content. I introduce the blog posts (there are only four in total right now, for testing) with buttons for specific post categories. Because the blog posts are so far down the page, when someone clicks on a specific category, I want the page to refresh to where the blog posts are rather than popping the user to to top of the page. Therefore, I set up an anchor link [https://www.radiantrosehealing.com/blog/#blog-cats] just above that region and have combined the anchor link with the category link [https://www.radiantrosehealing.com/blog?category=Resources/#blog-cats]. For me, at least, the anchor aspect works perfectly—the page refreshes to the blog posts region. The category aspect, however, does not—no posts get loaded! Can you see what I'm missing? [The password to that currently hidden page is "NorthStar".] I think the browser can't read the url blog?category=Resources/#blog-cats I guess we can use script code to set click behavior for this case. Can you provide correct password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment