[resolved] Warning: Division by zero in.... (4 posts)

  1. lunapark
    Posted 2 years ago #

    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?

  2. Michael
    Part-Time Forum Moderator
    Posted 2 years ago #

    edit tpl_page_nosidebar.php;


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


  3. lunapark
    Posted 2 years ago #

    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.

  4. lunapark
    Posted 2 years ago #

    Ahh found it... Under QuickEdit of post/pages I could uncheck "Commentbox".

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.