Read More Buttons
AnonymousOctober 2, 2011 at 1:20 am #1880
Okay. When I click a “Read the rest of this entry” button from the main page… after inserting a “more” link on the post of course… the page that loads is auto-scrolled to the point where the more tag was inserted.
This is a nice feature, however I would prefer to have the button link me directly to the top of the page it is linking to.
Check this entry in the Codex:
AnonymousOctober 2, 2011 at 1:57 am #17466
You’re the man!! Worked like a charm.
Now not only am I gonna have to get this .css thing down. Now I’m gonna have to figure out how to do it with other files like the functions.php, header.php, footer.php…. .php…. .what am I saying… .php
Seriously though, I’m assuming I can do this with any file in much the same way as the css??Mod
Yup, but the problem is if you alter the theme’s files, your changes will get lost in the next update. The solution is to use a child theme, with its own
functions.php. Instead of altering other files, you can add custom functions and use action hooks. When you update the theme, you don’t lose any of your customisations. It’s the way to go.
AnonymousOctober 2, 2011 at 2:07 am #17468
Awesome. Thanks for the tip!
You must be logged in to reply to this topic.