- This topic has 9 replies, 2 voices, and was last updated 3 years, 8 months ago by David.
-
AuthorPosts
-
July 22, 2020 at 4:29 am #1371958Joseph
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 linksWith 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
July 22, 2020 at 5:51 am #1372024DavidStaffCustomer SupportHi 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.July 22, 2020 at 6:36 am #1372078JosephHi 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).
July 22, 2020 at 6:43 am #1372085DavidStaffCustomer SupportLets 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 – selectgenerate_after_content
2.4 CheckExecute 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.July 22, 2020 at 7:04 am #1372106JosephDamn. 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/
July 22, 2020 at 7:53 am #1372304DavidStaffCustomer SupportWe 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/July 22, 2020 at 8:00 am #1372315JosephUnfortunately 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 againKind of funny, actually. π
July 22, 2020 at 9:13 am #1372393DavidStaffCustomer SupportIs 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 shortcodeJuly 23, 2020 at 5:37 am #1373316JosephHi 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.
July 23, 2020 at 6:25 am #1373362DavidStaffCustomer SupportHaha π Let us know how you get on….
-
AuthorPosts
- You must be logged in to reply to this topic.