WordPress.org

Ready to get started?Download WordPress

Forums

nextpage in Sight theme (20 posts)

  1. the modeling agency
    Member
    Posted 2 years ago #

    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

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    If you post a link to your site, someone may be able to help you.

  3. egado
    Member
    Posted 2 years ago #

    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...

  4. the modeling agency
    Member
    Posted 2 years ago #

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

  5. egado
    Member
    Posted 2 years ago #

    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.

  6. the modeling agency
    Member
    Posted 2 years ago #

    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......

  7. egado
    Member
    Posted 2 years ago #

    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 :)

  8. the modeling agency
    Member
    Posted 2 years ago #

    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!

  9. the modeling agency
    Member
    Posted 2 years ago #

    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

  10. egado
    Member
    Posted 2 years ago #

    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

  11. the modeling agency
    Member
    Posted 2 years ago #

    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?

  12. egado
    Member
    Posted 2 years ago #

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

    e.g.

    .page-link
    {
    font-size: 15px;
    }
    
    .page-link a
    {
    color: red;
    }
  13. the modeling agency
    Member
    Posted 2 years ago #

    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?

  14. egado
    Member
    Posted 2 years ago #

    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

  15. the modeling agency
    Member
    Posted 2 years ago #

    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?

  16. egado
    Member
    Posted 2 years ago #

    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;
    }
  17. egado
    Member
    Posted 2 years ago #

    Pleace notice the edit in my post before, shame on me... such a stupid mistake :(

  18. the modeling agency
    Member
    Posted 2 years ago #

    OK! now we are getting somewhere. for some reason it is bringing up some random text from my site (i think post titles..) unfortunately have to go = will fool with this some when i get back...
    thanks again! very much!

  19. the modeling agency
    Member
    Posted 2 years ago #

    after much fooling around i have got something that works for me. thanks very much, i really appreciate it!
    cbj

  20. Your Friend Johnny
    Member
    Posted 2 years ago #

    I haven't tested this to see if it solves my issue, but I wanted to give Egado a standing ovation for being so dedicated to solving a stranger's problem. In fact, I was so impressed I actually registered an account just to tell you!

    Now, off to edit single.php...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags