Change button link on Home page slider

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1042295
    Dan Abbott
    Participant

    How do I change the link on the buttons on the slider on the Home page? I’m happy for them to go to the same page, but an anchor link is added on the end e.g. ../page/#more-25. This takes the user to the start of the more content on the linked page, halfway down the page. We want the user to be taken to the top of the page. How do I remove the #more-25 from the URL link? Or how do I remove the <span id=”more-25″></span> anchor on the page?

    #1045440
    J. Davis
    Keymaster

    Hi Dan,

    Please refer to this paragraph to learn how to remove the anchor link from the read more tag. You will need to add that code to functions.php file of the theme
    https://codex.wordpress.org/Customizing_the_Read_More#Prevent_Page_Scroll_When_Clicking_the_More_Link
    Let us know if it was helpful.

    best regards,
    J. Davis

    #1045627
    Dan Abbott
    Participant

    Thanks! Works perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.