I have been trying for some time to do one thing: I need a navigation menu inside a WordPress post which will guide the user to different subsections of my post, and then maybe use a “Top” button to go back to the top. Let me give you an example:
Title
Introduction “jnkdjajkfa”
Menu
Section one – this is a link
Section two – this is a link
Conclusion – this is a link
Section one
“bdsjkbdfsjbfjkasbjkbfasbjf”
Back to top – this is a link
Section two
“dnjsdkfhbsjukfbajfkbjkfbkasbfjk”
Back to top – this is a link
Conclusion
“ndjasndkasnj”
Back to top – this is a link
I know I can do this in the code, but it’s really a pain to do it on every post. Do you know a plugin, method to easily do this? Any help is very appreciated.
You can simply put The code in the php file in your theme.If you use twentyeleven theme open content-single.php, find the line
And after it put your divs and top menu.
Another option is to create a widget where you could easily update the html code.
Instead your divs, below this line
paste this:
Also in fuctions.php after
add this: