[Support request] ERROR FOOTER – DISPATCH THEME

Home Forums Support [Support request] ERROR FOOTER – DISPATCH THEME

Home Forums Support ERROR FOOTER – DISPATCH THEME

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1449348
    josepdlh

    Hello,

    I’m using the dispatch theme and suddenly the footer buttons (to go the previous or next post) appears with and error only in the mobile version:

    https://ibb.co/Nj42CQp

    Thanks

    #1449354
    Elvin
    Staff
    Customer Support

    Hi,

    I’ve checked your site and noticed that part of your PHP code is commented out.
    commented out php

    <!--?php this part has to be fixed into <?php for the PHP snippet to work.

    Or if you actually intend to comment everything out, you can do this instead.

    /*
    <?php
                    wp_reset_postdata();
                } //end foreach
            } // end if
             
            $nextPost = get_next_post(false);
            if($nextPost) {
                $args = array(
                    'posts_per_page' = 1,
                    'include' => $nextPost->ID
                );
                $nextPost = get_posts($args);
                foreach ($nextPost as $post) {
                    setup_postdata($post);
    ?>
    */

    It’s basically using the /* [code here] */ comment syntax for PHP.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.