WordPress.org

Ready to get started?Download WordPress

Forums

Alert Div Class to Signal Additional Pages in Posts (2 posts)

  1. bloodylamer
    Member
    Posted 7 years ago #

    <div class="alert">
    <?php link_pages('<p class="pagelinks">Continue To More Pages: ', '</p>', 'number'); ?>
    </div>

    B/C it is sometimes hard to notice that there are additional pages to a given post, I decided to give the line containing the page numbers a special coloring.

    At the moment, when there aren't multiple pages in a given post, the alert-styled bordering still appears, but it is blank w/ nothing inside it. How do i write the code to make the alert conditional upon the existence of multiple pages? Right now "Continue to More Pages" only appears when there are multiple pages, so I want the special alert coloring to appear the same fashion.

    I hope I explained that correctly. Thanks for your help!

  2. bloodylamer
    Member
    Posted 7 years ago #

    oops! can someone move this into themes & templates. I accidently hit post before changing the category :-)

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic