Site logo

Archived topic

Custom Post Navigation

7 replies · Started by John on August 4, 2019

Viewing posts 1–8 of 8

Hello

I want to display Custom Post Navigation like "Volume"

Screenshot- https://prnt.sc/oo5who

Thanks.
I applied it to before comment hook. It works but not as volume. I wish to display it full width.

Hmmm - so where do you want it position above related reviews and full width? If so edit this CSS in the Customizer > Additional CSS:

.wpsp-related-posts.grid-container {
    margin-left: calc( -100vw / 2 + 100% / 2 );
    margin-right: calc( -100vw / 2 + 100% / 2 );
    max-width: 100vw;
}

to look like this:

.wpsp-related-posts.grid-container, #post-nav {
    margin-left: calc( -100vw / 2 + 100% / 2 );
    margin-right: calc( -100vw / 2 + 100% / 2 );
    max-width: 100vw;
}

Edited the css. It shows full width but not in one line. Display one by one.

Try adding this CSS:

@media(min-width: 769px) {
    #post-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}

Works great.

Just one query. If the height is bit small, I think it looks more great.

How can I minimize the height?

Edit this CSS:

#post-nav .post-nav-wrap {
    background-size: cover !important;
    background-position: center center !important;
    min-height: 120px;
    height: 100%;
    padding: calc(6% + 1em) 5%;
    -webkit-box-shadow: inset 0 -50px 70px 20px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 -50px 70px 20px rgba(0, 0, 0, 0.5);
    -webkit-transition: -webkit-box-shadow 500ms;
    transition: -webkit-box-shadow 500ms;
    transition: box-shadow 500ms;
    transition: box-shadow 500ms, -webkit-box-shadow 500ms;
    position: relative;
}

Remove the height: 100%; property and if need be reduce the min-height: 120px;

This archived topic is closed to new replies.