- This topic has 25 replies, 4 voices, and was last updated 1 year, 11 months ago by Fernando.
-
AuthorPosts
-
September 22, 2022 at 6:19 pm #2351156Fernando Customer Support
The screenshot you shared here says Page – 1: https://generatepress.com/forums/topic/rearrange-elements-on-paged-pages/#post-2351142
To clarify, is this screenshot paged or not?
September 22, 2022 at 6:29 pm #2351157FergalI see. The first one is the job-opening archive. Archives are not paged right?
The second screenshot is .com/page/3
I hope this helps and please let me know your thoughts.
Thanks,
FergalSeptember 22, 2022 at 6:55 pm #2351167Fernando Customer SupportI see. Thank you for clarifying.
Can you try adding this:
body.archive main#main { display: flex; flex-direction: column; } body.archive main#main .gb-container.my_newsletter_container { order: -2 } body.archive main#main header.page-header { order: -1 }
September 22, 2022 at 7:37 pm #2351176FergalAlmost there thanks Fernando! Job-opening archive and job-opening paged are perfect.
Just need to rearrange the Featured Jobs section on .com/page/2.
Can we do that with CSS or should I now do that with priority on the hook element?
Thanks
September 22, 2022 at 7:41 pm #2351177Fernando Customer SupportWe’ll need CSS.
Can you share all the CSS you have now, and how you want it to look again on .com/page/2?
September 22, 2022 at 7:43 pm #2351178FergalSounds good. Please see below:
/* rearrange job number, featured jobs, and newsletter */ body.blog[class^='paged'] main#main, body[class*=' paged'] main#main{ display: flex; flex-direction: column; } body.blog[class*=' paged'] .my_jobsnumber_container,body.blog[class*=' paged'] .my_newsletter_container, body.blog[class*=' paged'] .site-main>article, body.blog[class*=' paged'] nav#nav-below{ order: -1; } body.blog[class*=' paged'] .my_featuredjobs_container { order: 0; } body.archive main#main { display: flex; flex-direction: column; } body.archive main#main .gb-container.my_newsletter_container { order: -2 } body.archive main#main header.page-header { order: -1 }
September 22, 2022 at 8:00 pm #2351183Fernando Customer SupportCan you try removing this first?:
body.blog[class^='paged'] main#main, body[class*=' paged'] main#main{ display: flex; flex-direction: column; } body.blog[class*=' paged'] .my_jobsnumber_container,body.blog[class*=' paged'] .my_newsletter_container, body.blog[class*=' paged'] .site-main>article, body.blog[class*=' paged'] nav#nav-below{ order: -1; } body.blog[class*=' paged'] .my_featuredjobs_container { order: 0; }
September 22, 2022 at 8:06 pm #2351184FergalOk great I did that, thanks. Getting closer.
Now just need to please shift featured jobs below All Jobs
September 22, 2022 at 8:12 pm #2351186Fernando Customer SupportCan you try replacing all the code we have for this with:
body:is(.archive, [class*=' paged']) main#main { display: flex; flex-direction: column; } body:is(.archive, [class*=' paged']) .gb-container.my_newsletter_container { order: -2; } body.archive header.page-header { order: -1; } body[class*=' paged'] .my_jobsnumber_container { order: -1; }
September 22, 2022 at 8:15 pm #2351187FergalIt worked! Beautiful! Thank you so much Fernando!
September 22, 2022 at 8:18 pm #2351189Fernando Customer SupportYou’re welcome Fergal!
-
AuthorPosts
- You must be logged in to reply to this topic.