Support » Themes and Templates » nextpage in Sight theme

  • When I insert <!–nextpage–> in the text of a post, and update, the page ends there in the post with no indication for a “next page” or “page 1 , 2, 3” etc. Is this a problem with SIght? Or is it no longer working in general? or am i doing something wrong?
    thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • If you post a link to your site, someone may be able to help you.

    I don’t know the theme, but not every theme supports multipage post…but it is a default feature of wordpress… if there is nothing like

    <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>

    in the single.php or content-single.php you can add it…

    sorry to be lame, but how exactly does one add it? to the themes edit pages?
    thanks very much!!

    yes… this would be a solution to add the code in your theme 🙂

    Or you download the theme files from your ftp, edit them locally with a text-editor like PS-Pad (not ms word or something) and upload them to your ftp.

    well i dont see anything like that in there so i added it to the end, but nothing seems to change. BTW the link is themodelingagency.net
    thanks for your help. I am lame at this, but just want this simple thing to function, then I can roll……

    try to add it after <?php the_content(); ?> in your single.php

    so this is a little part from the single.php after adding the page-links function…

    <div class="post-content"><?php the_content(); ?></div>
    
    <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
    
    <div class="post-footer"><?php the_tags(__('<strong>Tags: </strong>'), ', '); ?></div>

    your complete single.php will look like this: http://pastebin.com/QAVByaGx

    Feel free to ask again 🙂

    OK,
    excellent, let me try this out tonight and see if i can get it to go. I will let you know tomorrow-! best and thanks again!

    seems to be working, amazing ! thanks. one thing: what about the part that refers to ‘twentyeleven’ which is a different theme, is that correct here?
    c

    Its no problem… in this default wordpress template function it is just for translation… you can delete the twentyeleven text like so:

    before
    <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>

    after
    <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . 'Pages:' ) . '</span>', 'after' => '</div>' ) ); ?>

    Have a look at: http://codex.wordpress.org/Function_Reference/wp_link_pages

    It is working. I cannot seem to get that text (it is Pages: next ) to look like the rest in the post. do i do this in the style sheet css?

    Yes you can change how it looks like in your style.css

    e.g.

    .page-link
    {
    font-size: 15px;
    }
    
    .page-link a
    {
    color: red;
    }

    Hi,
    OK, I have tried putting this under many headings like: post, general etc. but nothing works. are you sure it goes in the style .css?

    hmm… actually it is not in your style.css its right in the template, that can’t work.

    Paste in to end of your style.css

    nothing happens when I do that. The last heading in style sheet is for footers. what about putting it where the code was for nextpage in single post?

    These headings are just comments for structure the css file. I want you to paste it to the end, so that no other style rule may effect yours (css = Cascading Style Sheets).

    I can’t see the the new css rules in your style.css – there is nothing, can you please paste it, so I might be able find out whats wrong 🙂

    //EDIT
    Damn, guess a made a mistake with css selectors (a minus was to much) I have write .page-link instead of .pagelink
    try this in your style.css

    .pagelink
    {
    font-size: 15px;
    }
    
    .pagelink a
    {
    color: red;
    }
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘nextpage in Sight theme’ is closed to new replies.