Question How do I make a "next chapter button"?

Discussion in 'Translator's Corner' started by loeuf, Dec 9, 2020.

  1. loeuf

    loeuf Active Member

    Joined:
    Sep 7, 2020
    Messages:
    11
    Likes Received:
    15
    Reading List:
    Link
    LOL, I'm not sure if this is the right place to ask, but how do I create a "next chapter" or "previous chapter" button?
    I thought wordpress did it automatically, but when I added a new series, the "next chapter" would be linked to the newest post.
    And then I've seen other websites having their buttons linked correctly.
    Do I have to add them manually? Or is there an add on?
    Thanks in advance!
     
  2. Jaspaaar

    Jaspaaar Well-Known Member

    Joined:
    Mar 19, 2016
    Messages:
    394
    Likes Received:
    540
    Reading List:
    Link
    There are probably addons for it, but otherwise it's just manual. Having left-aligned 'Previous chapter' text hyperlinked with the URL for the previous chapter, and then a 'Next chapter' right-aligned. You can make it fancier by adding arrows or bolding it or whatever.

    It sounds like you're using Wordpress posts for your chapters rather than pages. Pages can be a bit easier to work with since they can have fully configurable URLs without the date, and you can set the chapter to have the novel's table of contents as its parent page to make things neater. Giving you uniform URLs like blog.com/novel-name/chapter-1, blog.com/novel-name/chapter-2 etc rather than blog.com/2020/12/09/novel-name-chapter-1, which also makes it impossible to create the next chapter link before the next chapter has been created. You can then use posts on the blog's front page to link to the pages when chapters are released. And unlike posts, pages don't have the automatic links at the bottom going to the previous/next post for the site, which as you've found can be a different novel.
     
    loeuf likes this.
  3. Hacalyhd

    Hacalyhd Well-Known Member

    Joined:
    Jun 6, 2016
    Messages:
    961
    Likes Received:
    1,176
    Reading List:
    Link
    I'm not sure how much you know about programming (or how much wordpress allows its users to do), but maybe you could make a list with the chapter-links and have the buttons point to the next (or previous) element in it (or be hidden if there is none).
     
  4. Dummy

    Dummy Need nyans

    Joined:
    Dec 31, 2017
    Messages:
    131
    Likes Received:
    114
    Reading List:
    Link
    If you're on wordpress free plan, it is likely that you'll have to add the links manually since the free plans don't allow much for users to configure the code on the site or have add-ons (unless business plan). It's not a problem if you're only translating one series but the posts will jump if you have multiple. Years ago, I did ask Wordpress if they had this function and the answer is no. The sites where you've seen the automatic next/prev chapters button are likely to be self-hosted sites. For such sites, you can use a plug-in or code the buttons to toggle within the novel category.

    There may be work around to this but I'm not sure, so hopefully you find an alternative method since manually linking chapters is a huge pain in the ass.
     
    loeuf likes this.
  5. Shibb

    Shibb Well-Known Member

    Joined:
    Nov 22, 2018
    Messages:
    372
    Likes Received:
    598
    Reading List:
    Link
    Posts can be pre-emptively linked, eg domain.com/food-chapter-2. The link follows the post's title/permanent url (which can be manually edited if need be).

    Wordpress.com's premium plans also don't allow plugins. I presume there's a way to code in some automation so you don't have to change the links every time you post, but I don't the braincells to research past the articles of "you can maybe do this but I'll explain how and not show examples of code and where to implement them on a limited WP site".
     
  6. Solus

    Solus 自分のことお嫌いです

    Joined:
    Nov 3, 2016
    Messages:
    660
    Likes Received:
    1,104
    Reading List:
    Link
    If you are on free wordpress, you will have to link it manually yourself. Like writing this at the bottom of the chapter -> Previous | TOC | Next

    Then put links on the keywords.
     
  7. readerz

    readerz Madam Jin

    Joined:
    Jan 4, 2017
    Messages:
    3,798
    Likes Received:
    8,598
    Reading List:
    Link
    Yes, like the others I just do it manually. My table of contents is also created manually.
     
  8. umiyuki493

    umiyuki493 Active Member

    Joined:
    Jul 5, 2020
    Messages:
    53
    Likes Received:
    44
    Reading List:
    Link
    Manually. It's a pain in the butt, but I don't want to pay just for a button. There's a button block, or you can do as @Solus pointed out. Sometimes the alignment is thrown off after wordpress.com updates (I am still editing through 40+ chapters to re-align all of my buttons), so I recommend keeping it simple.

    I have a chapter template that stays in my drafts folder with premade buttons that I just have to add links to. I just have to remember to "Copy Post" so I don't type over the template and have to make a new one.