• Hi,
    HELP.
    I was doing some editing of code on my site, trying to get ride of a footer link and ended up taking my site down. https://www.JerryFurst.com

    I did take a peek at the SQL database and removed 1 used that looked odd, but made no other changes.

    Anyone help, Please!!!!
    thanks,
    Jerry

Viewing 8 replies - 1 through 8 (of 8 total)
  • Seems to be working now.

    Thread Starter jfurst

    (@jfurst)

    yep, I got it. Database connection problem. Still trying to get rid of the footer link, though.

    It should be in the footer.php.

    Thread Starter jfurst

    (@jfurst)

    thanks for the help….they have it coded beyond the scope of my understanding. When I took the code out, the site goes down.

    Here’s the code:
    this is in the footer.php

    <div id="footer-left">
    <?php /* WARNING: YOUR SITE MAY STOP WORKING IF THESE LINKS ARE MODIFIED IN ANY WAYS */?>
    DarkHive <a href="https://www.magpress.com" title="WordPress Theme">WordPress Theme</a> By MagPress<span class="credit">Thanks To <a href="https://nhshospitaljobs.com" title="NHS Hospital Jobs">NHS Hospital Jobs</a> | <a href="https://nhsnursetraining.com" title="NHS Nurse Training">NHS Nurse Training</a> | <a href="https://nhsjobslondon.com" title="NHS Jobs London">NHS Jobs London</a></span>
    </div>

    and in the Index.php file:

    <?php if ((!function_exists("check_theme_footer") || !function_exists("check_theme_header"))) { ?><?php { /* nothing */ } ?><?php } else { ?>
    
    <?php get_header(); ?>

    [Please post code snippets between backticks or use the code button.]

    I’m not sure where to find the “Check_theme_footer” function…
    thanks again,
    Jerry

    Try to remove:

    <?php if ((!function_exists(“check_theme_footer”) || !function_exists(“check_theme_header”))) { ?><?php { /* nothing */ } ?><?php } else { ?>

    and the last line: <?php } ?>

    Thread Starter jfurst

    (@jfurst)

    Well, I tried as you suggested, which is a good idea, but got this error when loading the site in a browser:

    Parse error: syntax error, unexpected ‘}’ in /home/content/j/e/r/jerryfurst/html/wp-content/themes/darkhive/index.php on line 97

    This is the code at the bottom and line 97 is at the end:
    </div><!– POST ENTRY END –>
    <?php include (TEMPLATEPATH . ‘/paginate.php’); ?>
    </div><!– CONTENT END –>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    <?php } ?>

    thanks for taking the time…
    Jerry

    Moderator cubecolour

    (@numeeja)

    you shouldn’t use any theme with encrypted stuff unless you enjoy the risk of your site getting hacked and/or spreading spam & viruses

    https://wpmu.org/why-you-should-never-search-for-free-wordpress-themes-in-google-or-anywhere-else/

    https://www.themelab.com/2009/12/08/stop-downloading-wordpress-themes-from-shady-sites/

    You need to remove <?php } ?> as well.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Took my site DOWN!’ is closed to new replies.