WordPress.org

Support

Support » Themes and Templates » WP-Creativix » [Resolved] Warning: Division by zero in….

[Resolved] Warning: Division by zero in….

  • Hi I just installed newest WordPress and your Theme (Creativix)
    Its works great, but I found one little bug.

    When I create an page, and chooses “no sidebar” I get this little error in the buttom of the screen.

    Warning: Division by zero in /home/www/kirkeager.com/wp/wp-content/themes/wp-creativix/tpl_page_nosidebar.php on line 38

    What can I do to get rid of this line?

Viewing 3 replies - 1 through 3 (of 3 total)
  • edit tpl_page_nosidebar.php;

    find:

    <div class="wp-pagenavi"><?php wp_link_pages('before=Pages: &pagelink=<span>'%'</span>'); ?></div>

    change to:

    <div class="wp-pagenavi"><?php wp_link_pages('before=Pages: &pagelink=<span>%</span>'); ?></div>

    (untested)

    Great it worked thanks.

    Now when I got you, can you tell me an easy way remove the “comment-box” on sides or posts?
    Weird this is’nt standard from WordPress, some sites really don’t need to have a comment box.

    Ahh found it… Under QuickEdit of post/pages I could uncheck “Commentbox”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Warning: Division by zero in….’ is closed to new replies.
Skip to toolbar