Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #478741

    In this thread https://kriesi.at/support/topic/how-to-apply-custom-css-to-pagination/ Ismael kindly showed how to add custom styling to pagination. However the text ‘Pages:’ comes AFTER the pagination links with this solution. How can I have the text ‘Pages:’ come BEFORE the pagination links please?

    #478966

    Hey PPCHound!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #479006

    Hi Rikard,

    Apologies for not providing the link: Here it is.

    kindest regards,
    PPCHound

    • This reply was modified 9 years, 6 months ago by PPCHound.
    #479447

    Hi,

    Please try the following in Quick CSS:

    .pagination_split_post span {
        display: inline !important;
        float: initial !important;
    }

    You might need to do some additional styling to the buttons you have there as well. Let us know if you should need any help with that.

    Cheers!
    Rikard

    #479615

    Hi Rikard,

    Many thanks for your kind expertise. This solution works just fine.

    I have adjusted the CSS to alter the button size, but it looks bad when viewed on a mobile device (iphone) as the buttons won’t wrap.

    Any help you can give with this would be very much appreciated.

    kindest regards,

    PPCHound.

    #479618

    Hey!

    Please change your code to following one to limit your changes to screensizes bigger than mobile

    @media only screen and (min-width: 481px) {
    .pagination_split_post span {
        display: inline !important;
        float: initial !important;
    }}

    Regards,
    Yigit

    #479665

    Hey Yigit,

    Many thanks for your input.

    Right now my CSS is:

    
    .avia_textblock  a {  text-decoration: underline; }
    .pagination_split_post span {
    display: block;
    float: left;
    width: 55px;
    height: 35px;
    border: 1px solid black;
    margin-left: 5px;
    margin-right 25px;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background: red;
    border-radius: 3px;
    box-shadow: 0 1px 2px gray;
    color: white;
    text-shadow: 0 1px 1px gray;
    }
    
    .pagination_split_post a span {
    background: white;
    color: gray;
    }
    
    .pagination_split_post span {
        display: inline !important;
        float: initial !important;
    }
    

    I need the text ‘Pages’ to appear alone on a line, with the page links on the next line. The buttons should be the size shown in the above CSS for desktop and tablets but half the size for phones.
    Not sure how to do this. Any help would be gratefully received please. Then I’m done!

    kind regards,

    PPCHound

    #480067

    Hey!

    Did you change the site? I had a look but couldn’t find any pagination anymore? What you could do is to place “Pages” in it’s own paragraph, then the pages would wrap under it.

    Best regards,
    Rikard

    #480421

    Hi Rikard,

    No, I didn’t change the site other than making the first page into a post grid. Clicking the post shows the post as it was before.

    I took your advice and added a <p> tag into loop-index.php which has placed the links onto a new line.
    However, when the links wrap on a mobile device they overlap each other. I tried adjusting the margins in the quick CSS code but have not worked out where I’m going wrong. :(

    Any help would be much appreciated – thank you. Nearly there (thanks to you!).

    kindest regards,

    PPCHound

    #481097

    Hi,

    Did you manage to sort it out? I had a look on iphone4/chrome and it looks good!

    Cheers!
    Rikard

    #481413

    Hi Rikard,

    Actually it’s not so good. If you look at my screenshot taken on the iphone 4S with Safari you will see the buttons overlapping. I need to cure this.

    screenshot

    kindest regards,

    PPCHound

    #481878

    Hi!

    Adjust the line-height property:

    @media only screen and (max-width: 767px) {
    .pagination_split_post p a {
        line-height: 50px;
    }}

    Best regards,
    Ismael

    #482042

    That’s it! MANY THANKS to all the support guys who helped with this. Your support is SECOND TO NONE.

    kindest regards,

    PPCHound

    #482649

    Hi,

    Thanks for the kind words and we’re glad we could help :-)

    Regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Pagination styling’ is closed to new replies.