[resolved] 2 extra characters/code showing in page template (8 posts)

  1. smilesfromsusan
    Posted 6 years ago #

    I have 2 characters from the code showing up on every page of my new site: http://ledonne.com.au/new/home/


    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

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Looks like it in sidebar.php.

    <!-- Sidebar -->?>

    Just remove the ?>.

  3. smilesfromsusan
    Posted 6 years ago #

    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.

  4. kymac
    Posted 6 years ago #

    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.

  5. smilesfromsusan
    Posted 6 years ago #

    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

  6. kymac
    Posted 6 years ago #

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

    Sorry I couldn't help.

  7. kymac
    Posted 6 years ago #

    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().

  8. smilesfromsusan
    Posted 6 years ago #

    I FOUND IT!!!!

    It was an extra


    at the very beginning of the footer code.

    Problem solved. Thanks to all who looked and replied.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.