[Support request] Page breaks – placement of numbered page links

Home Forums Support Page breaks – placement of numbered page links

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1371958
    Joseph

    We have a few articles that are rather lengthy and I’d prefer to break them up over two or three pages however…

    I’m using the StarBox author box plugin and the Contextual Related Posts plugin so if I use page breaks our articles look like this:

    Article body
    StarBox author box
    Related post suggestions
    1, 2, 3, etc, page links

    With the numbered page links appearing after the author box and related posts it’s far too easy for a reader to miss.

    I’ve poked around in the settings for the plugins and the theme customisation but don’t see a simple way to move the numbered page links to the end of the article’s text body, before those two plugins, instead of after it. Any suggestions? Some code I could put in the Additional CSS?

    Thanks in advance,

    Joseph

    #1372024
    David
    Staff
    Customer Support

    Hi there,

    does the author box and related posts plugin provide an option to add using a function or shortcode ?

    If so you can add them using a Hook Element:
    https://docs.generatepress.com/article/hooks-element-overview/

    The generate_after_content hook will place them below the post meta.

    #1372078
    Joseph

    Hi David,

    I have no idea and wouldn’t even know where to look. Considering that I just had to google what a shortcode is… I have a feeling that this is out of my element (which is rudimentary as is).

    #1372085
    David
    Staff
    Customer Support

    Lets see if we can fix that 🙂

    If this is the StarBox plugin you’re using:

    https://en-gb.wordpress.org/plugins/starbox/

    Then it provides this shortcode: [starbox]
    Shortcodes allow you to display things like what this plugin does anywhere you add the Shortcode.

    So now we have the Shorcode.

    1. Go to Appearance > GeneatePress and enable the Elements Module.
    2. Then Appearance > Elements > New –> Hook
    2.1 Give it a Title eg. ‘Author Box and More’
    2.2 Add the [starbox] to the Hook text field.
    2.3 in the Hook List – select generate_after_content
    2.4 Check Execute Shortcode
    2.5 Then go to the Display Rules Tab > Location: Select Posts >> All Posts.
    2.6 Publish the element.

    Now you should see the AuthorBox is below the post content.
    Let me know if that works and provide me a link to the Related Posts plugin you’re using and we can tackle that next.

    #1372106
    Joseph

    Damn. The GP team really does go the extra mile for their customers. 🙂

    I’ll play around with that a little later and let you know.

    In the meantime, the related post plugin I use is this: https://en-gb.wordpress.org/plugins/contextual-related-posts/

    #1372304
    David
    Staff
    Customer Support

    We try 🙂

    So that plugin provides this shortcode:

    [crp]

    Which you can add inside the same Hook, just add it on a line before ( or after ) the other shortcode.

    More info on that shorcode here:
    https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/

    #1372315
    Joseph

    Unfortunately it didn’t work and it even duplicated the author box so the page now, top to bottom, is:

    Post content
    Author Box
    Related posts
    Page number links
    Author box again

    Kind of funny, actually. 🙂

    #1372393
    David
    Staff
    Customer Support

    Is the duplicate in the correct place?
    And in the Plugin Settings what happens if you uncheck Visible in Posts ( or is there any settings related to using the shortcode

    #1373316
    Joseph

    Hi David,

    I’m going to tinker with these a bit when I have the time this weekend. For now, I just broke the article into three parts… one for each season since Captain Kirk kissed a lot of women. 😉

    Again though, you folks are fab, going above and beyond to offer support.

    #1373362
    David
    Staff
    Customer Support

    Haha 🙂 Let us know how you get on….

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