[Resolved] How to position pagination above social share buttons?

Home Forums Support How to position pagination above social share buttons?

This topic contains 1 reply, has 2 voices, and was last updated by  Tom 3 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #214239

    Mathias

    Hello,

    GP comes with a nice pagination for posts and pages (WP’s pagebreak shortcode). But unfortunately it shows “1 2 … 21 next ->” below social share buttons and related posts. We have both coming from Jetpack. Is there a hook line to get it shown above the social share section?

    Thank you in advance!

    #214368

    Tom Lead Developer

    Hi there,

    Unfortunately there’s no easy way to do this as plugins like social sharing plugin in to the content area, while the pagination comes after the content.

    The only way you could do it is to stop the automatic adding of the icons by the plugins and then hook the function into the generate_after_entry_content hook: https://generatepress.com/knowledgebase/hook-list/

    I’m not sure if the Jetpack social sharing will allow you to do this, but some plugins will come with a function you can add manually.

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

You must be logged in to reply to this topic.