Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #361581

    I’m trying to make a table for contents for my category page. What I like to do is add a anchor (jump) link to the blog links on the page.

    Is there a way I can automatically add a anchor id to the title of the post?

    Example page http://hamiltonbradbury.co.uk/umbrella-company/

    #361807

    Hey gregdickson!

    Open up /enfold/includes/loop-index.php and change line 130 from this.

    echo $title;
    

    To this.

    echo '<span id = "anchor_'.get_the_id().'">'.$title.'</span>';
    

    That will add an ID to the title which you can link to.

    Cheers!
    Elliott

    • This reply was modified 10 years ago by Elliott.
    #362061

    Elliot you are a rockstar!

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Create Achour Links archive pages’ is closed to new replies.