Read More Buttons

  • Anonymous

    #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.

    Suggestions?

    Mod

    Anonymous

    #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

    (gasps!!)

    Seriously though, I’m assuming I can do this with any file in much the same way as the css??

    Mod

    Kenneth John Odle

    #17467

    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 style.css and 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.

    Ken

    Anonymous

    #17468

    Awesome. Thanks for the tip!

Viewing 5 posts - 1 through 5 (of 5 total)

  • You must be logged in to reply to this topic.