Hi everyone,
I’m trying to include a “Jump to Recipe” button for my recipe blog. (See example just under recipe title: [https://cookieandkate.com/amazing-chocolate-chip-cookies/]).
This is the code for my ‘Jump to Recipe’ button: <div class=”wp-block-button is-style-fill”><a class=”wp-block-button\_\_link wp-element-button” href=””#recipe”” rel=”#recipe”>Jump to Recipe</a></div>.
I’ve inserted HTML anchor code for where I want the button to link to on the same page: <div id=”recipe”> </div>.
Every time I click on the button, it links back to my homepage.
What gives?? Please ELI5 :). I am by no means a coding expert.
​
[ad_2]
might just be a formatting error, but it might be the extra “” in the href= section
It works as it should for me, also the code is correct.
`href=””#recipe””` -> `href=”#recipe”`