Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #22959

    How do I put page breaks in the Display theme pages? I read other posts on other themes, but nothing seems to work. How and where do I put them and do I need to do anything else to get them to work?

    #118027

    Hi,

    What do you mean by page breaks and where exactly do you want to use them?

    Please send us a screenshot of what you are trying to accomplish.

    Thanks,

    Ismael

    #118028

    Well.. Here is the page:

    http://0183818.netsolhost.com/wordpress1/trial-services/

    If you look down the page you will see it is rather long, I would like to be able to put a page break right before it says “Our Experience:” so there would be a link to a next page or something like that.. I really did not want to create another complete page unless that is what I have to do in order to do what I was looking to do..

    #118029

    Hi,

    First, edit page.php then find this code

    <?php edit_post_link('Edit', '', ''); ?>

    Replace that with

    <?php edit_post_link('Edit', '', ''); ?>
    <?php wp_link_pages(); ?>

    When you’re done, edit the Trial Services page, switch to text mode. Before “Our Experience” insert “<!–nextpage–>”. Done. You will have a pagination below.

    Regards,

    Ismael

    #118030

    Worked great!.. Now, how would I style it like at the bottom of the display support page? If you do not mind.. or you can just point me in the right direction an I will try to get it done.. Oh, not this will work every time I use it correct??

    Thanks again…

    #118031

    Hi,

    Please replace the code <?php wp_link_pages(); ?>

    with this

    <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>

    Now, you can style it using the selector #page-links.

    Edit css > choose the style that you are currently using. (style1.css, style2.css or style3.css). Place something like this at the bottom.

    #page-links {
    CSS CODES HERE
    }

    #page-links a {
    CSS CODES HERE
    }

    Regards,

    Ismael

    #118032

    I tried to code it, but I think there is a <div></div> missing or something…

    #118033

    Hi,

    Use this instead

    <?php $args = array(
    'before' => '<div id="page-links">Pages:',
    'after' => '</div>',
    'next_or_number' => 'number',
    'pagelink' => '%',
    'echo' => 1
    );

    wp_link_pages( $args );
    ?>

    What do you mean by missing div? You can style it using #page-links.

    Regards,

    Ismael

    #118034

    That works nice… Thanks.. Don’t worry about the styling right now, it is functional and that is what counts.. I will deal with that at another time.. thanks for the code…

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Page Breaks in Display Theme’ is closed to new replies.