Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1296577
    tarv8278
    Participant

    I have a long post that I broke into multiple pages using <!–nextpage–>. Now at the bottom of each page it shows Page 1 2 3 4 5 6. I would like to customize the look of this namely by making it larger / bolder, but also have buttons for previous page / next page. How would I go about doing this? I am using the Icon stack.

    #1296582
    Thai
    Moderator

    Hi There,

    Please provide us with your website URL so we can take a closer look.

    Thanks.

    #1302722
    tarv8278
    Participant

    The post has not been published yet. Here is a snip of how it appears –

    #1302828
    tarv8278
    Participant

    I published briefly to see how it looked and now appears to be intermixed with post navigation. See new snip.

    #1302989
    Nabeel A
    Moderator

    Hi again,

    Can you please share the URL of the page so we can take a closer look? In the mean time try adding the following code in your Customizer:

    .x-pagination a {
    	border: 1px solid #333;
    	border-radius: 0;
    	box-shadow: none;
    }
    .x-pagination a:hover {
    	color: #fff;
    	background-color: #757575;
    }

    Hope this helps!

    #1303627
    tarv8278
    Participant

    Hi,

    That didn’t seem to do anything. Here is the link for the post I’m working on.

    https://bucketlistcentral.com/ultimate-us-road-trip/

    The next / last post links are run by the following code I found on the forum –

    // Links for Next / Previous Post

    add_action (‘the_content’, ‘add_next_post_item_link’ );

    function add_next_post_item_link ( $content ) {
    if ( is_singular(‘post’) ) {
    $next_name = “Next Post <i class=\”x-icon-chevron-right\”></i>”;
    $prev_name = “<i class=\”x-icon-chevron-left\”></i> Previous Post”;
    $next_link = get_next_post() ? ‘ID ) . ‘”>’ . $prev_name . ‘‘ : ”;
    $prev_link = get_previous_post() ? ‘ID ) . ‘”>’ . $next_name . ‘‘ : ”;
    $posts = ‘<div class=”wp-post-navigation-next”>’.$next_link.$prev_link.'</div>’;
    return $content . $posts;
    } else {
    return $content;
    }
    }

    #1303833
    Christopher
    Moderator

    Hi there,

    Please update previous code to:

    .page-links {
        display: block;
        text-align: center;
    }
    .page-links a, .page-links {
        font-size: 25px;
        font-weight: bold;
    }
    .wp-post-navigation-next a {
        border: 2px solid red;
        padding: 4px 10px;
        border-radius: 3px;
        background-color: #000;
        color: #fff;
    }
    .wp-post-navigation-next a:hover {
    border-radius: 3px;
        background-color: #fff;
        color: #000;
    }

    Hope it helps.

    #1304564
    tarv8278
    Participant

    This worked beautifully. Thanks!

    #1304567
    Joao
    Moderator

    Glad to hear it 🙂

    Let us know if we can help with anything else

    Joao

    #1304568
    tarv8278
    Participant

    How tough would it be to get links for next / prev page?

    #1304647
    Joao
    Moderator

    Hey there,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1296577 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>