- This topic has 6 replies, 2 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
September 14, 2019 at 6:21 am #1009276
An Nguyen
Hi All,
I need your help on 2 issues
1/I have had an issue that pagination in a content of post after I used page-break. The pagination display at the end of content however, the location of pagination layout is after the location of some plugin layout like rating post and social share… Can I set its priority as displaying before these plugins? Or can I set the order display these things after main content? You can view the link that I attached.
2/I used this code below to set feature for the first widget in a post page, it works fine. However, I can not set this for the 4th widget. How can I set for a specific widget?
.sidebar .widget:first-child { background-color: #2F7E13; color: #fff; } .sidebar .widget:first-child .widget-title, .sidebar .widget:first-child a:not(.button) { color: #fff; }
Thanks,
AnSeptember 14, 2019 at 6:52 am #1009288David
StaffCustomer SupportHi there,
1. Those plugins are filtering the_content, the post navigation is hooked in below the_content. To move the plugin content below the post nav you would need to:
a. Check that the plugin provides a shortcode option
b. Use a Hook Element to add the shortcode to your posts.2. This selector:
.sidebar .widget:first-child
chooses the first widget, if you want the 4th you would :nth-child ie..sidebar .widget:nth-child(4)
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2019 at 6:56 am #1009290An Nguyen
Hi David,
1/ If these plugins don’t support short-code, how can I move pagination layout before these?
2/ Thanks David. This code worked fine!
Thanks,
AnSeptember 14, 2019 at 8:13 am #1009424David
StaffCustomer SupportThen things get complicated. Best to check the plugins provide a shortcode or PHP function for display.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2019 at 8:44 am #1009436An Nguyen
Hi David,
One of them supports shortcode. How can I set it after pagination layout of a post?
I did like this: First create new hook ‘after-content’ -> add shortcode -> set priority 20 (I want it less priority than pagination layout of a post) display rule “all posts” . However, it still displays before the pagination layout of a post. I wondered if I did something wrong?
Thanks
September 14, 2019 at 10:36 am #1009496An Nguyen
Thanks David,
This issue can be handled by using hook and short-code.
September 14, 2019 at 2:42 pm #1009588David
StaffCustomer SupportAwesome – glad to hear that
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.