Support » Fixing WordPress » 2 extra characters/code showing in page template

  • Resolved smilesfromsusan


    I have 2 characters from the code showing up on every page of my new site:


    is showing up in upper part of the main content area, to the right of the black title bar on every page.

    Can anyone assist in helping me fix this?

    Thank you,
    – Susan

Viewing 7 replies - 1 through 7 (of 7 total)
  • Looks like it in sidebar.php.

    <!-- Sidebar -->?>

    Just remove the ?>.

    Thanks for replying Esmi.

    The sidebar.php shows only this code:

    ‘<!– Sidebar –>
    <div class=”sidebar sidebar-left”>


      <?php wp_list_pages(‘title_li=’); ?>

    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(1) ) : ?>

    <?php endif; ?>

    <!– Sidebar –>’

    I do not see any extra question mark.

    In footer.php, I see some questionable code that may be the source of the problem. This could be hacker code, I haven’t decoded it to see.

    if ( !is_user_logged_in() ) { ?>
    <? echo base64_decode("PGEgaHJlZj0iaHR0cDovL2xleG1hcmtpbmtjYXJ0cmlkZ2VzLm5ldCI+TGV4bWFyayBJbmsgQ2FydHJpZGdlczwvYT4gfCA8YSBocmVmPSJodHRwOi8vZXBzb24taW5rLWNhcnRyaWRnZXMubmV0Ij5FcHNvbiBJbmsgQ2FydHJpZGdlczwvYT4gfCA8YSBocmVmPSJodHRwOi8vaGlyZXdvcmRwcmVzc2V4cGVydHMuY29tIj5Xb3JkcHJlc3MgVGhlbWVzIFBsdWdpbiBEZXZlbG9wbWVudDwvYT4=");?>
    <? }?>

    EDIT – this looks just to be advertisement. Check sidebar-right.php for the extra characters.

    Thanks for taking a look kymac.

    I thought I decoded the footer and made all the necessary adjustments Is it still encoded?

    sidebar.php does not show any question marks either

    ‘ <!– Sidebar –>
    <div class=”sidebar sidebar-right”>

    <!– Sidebar –> ‘

    Thanks again.

    – Susan

    I could only look at the code from the theme site, not your site’s code.

    Sorry I couldn’t help.

    OK – one last try. In the original index.php, the last line is:

    <?php include (TEMPLATEPATH . '/sidebar-right.php'); ?><?php get_footer(); ?>

    Check that against your site. Maybe there is an extra ?> before the call to get_footer().

    I FOUND IT!!!!

    It was an extra


    at the very beginning of the footer code.

    Problem solved. Thanks to all who looked and replied.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘2 extra characters/code showing in page template’ is closed to new replies.