smilesfromsusan
Member
Posted 2 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
Looks like it in sidebar.php.
<!-- Sidebar -->?>
Just remove the ?>.
smilesfromsusan
Member
Posted 2 years ago #
Thanks for replying Esmi.
The sidebar.php shows only this code:
'<!-- Sidebar -->
<div class="sidebar sidebar-left">
<h3>Pages</h3>
<?php wp_list_pages('title_li='); ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
<?php endif; ?>
</div>
<!-- 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.
<?php
if ( !is_user_logged_in() ) { ?>
<? echo base64_decode("PGEgaHJlZj0iaHR0cDovL2xleG1hcmtpbmtjYXJ0cmlkZ2VzLm5ldCI+TGV4bWFyayBJbmsgQ2FydHJpZGdlczwvYT4gfCA8YSBocmVmPSJodHRwOi8vZXBzb24taW5rLWNhcnRyaWRnZXMubmV0Ij5FcHNvbiBJbmsgQ2FydHJpZGdlczwvYT4gfCA8YSBocmVmPSJodHRwOi8vaGlyZXdvcmRwcmVzc2V4cGVydHMuY29tIj5Xb3JkcHJlc3MgVGhlbWVzIFBsdWdpbiBEZXZlbG9wbWVudDwvYT4=");?>
<? }?>
<!--dnc997wordpress-->
EDIT - this looks just to be advertisement. Check sidebar-right.php for the extra characters.
smilesfromsusan
Member
Posted 2 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">
</div>
<!-- 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().
smilesfromsusan
Member
Posted 2 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.