emmabrinker Posted June 27, 2022 Share Posted June 27, 2022 Site URL: https://www.charmingoilylife.com/favorites#collagen Hi I am trying to add anchor link code blocks but the links are jumping down a little too far. This is my code injection: <p id="collagen"></p> Please help! Link to comment
tuanphan Posted June 30, 2022 Share Posted June 30, 2022 Hi, First remove your code Next, add a Code Block under button: shop stress away Next, paste this code <p id="collagen"></p> 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!) Link to comment
emmabrinker Posted June 30, 2022 Author Share Posted June 30, 2022 17 hours ago, tuanphan said: Hi, First remove your code Next, add a Code Block under button: shop stress away Next, paste this code <p id="collagen"></p> hi sorry i dont know all the lingo. I didn't mean to say code injection, I meant to say code block. that is what I had already on my site. the link jumps down halfway through the first paragraph instead of right before the title Link to comment
tuanphan Posted July 1, 2022 Share Posted July 1, 2022 On 6/30/2022 at 9:11 AM, tuanphan said: Hi, First remove your code Next, add a Code Block under button: shop stress away Next, paste this code <p id="collagen"></p> You can remove your Code Block first Next, add a Code Block under button: shop stress away Next, paste this code <p id="collagen"></p> 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!) Link to comment
emmabrinker Posted July 2, 2022 Author Share Posted July 2, 2022 20 hours ago, tuanphan said: You can remove your Code Block first Next, add a Code Block under button: shop stress away Next, paste this code <p id="collagen"></p> Thank you! on mobile this works fine but on desktop it doesn't jump to where i want it to, it jumps farther down. i'll attach photos. the first one is where it jumps to and the second one is ideally where I want it to jump to. It does this for all of my anchor links on desktop. I thought it might be something with my header so I decreased the padding of my header using this code: .header-announcement-bar-wrapper { padding-top: 0px !important; padding-bottom: 0px !important; } it definitely decreased the padding of the header but didn't fix the issue. Hope this makes sense and thank you so much again! Link to comment
tuanphan Posted July 4, 2022 Share Posted July 4, 2022 Yes. Because your header is sticky on scroll. It took up part of the height of the screen. The solution is disable sticky effect on current page, or add some spacer blocks on above text What do you think? 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!) 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