• I was trying to delete some links at the bottom of my blog but when I saved it and tried to look at the changes I got this error:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dhokey/public_html/wp-content/themes/sportsandhealth/functions.php on line 15
    Now I can not login to wp or see my page at all. my page is online-health-fitness.com and it is gone. What do I do to be able to get back in to edit my page?

Viewing 15 replies - 1 through 15 (of 15 total)
  • What does line 15 of functions.php look like? Were you editing functions.php?

    Access server files via FTP and cpanel. Go to wp-content/themes/ and rename sportsandhealth theme folder. Refresh browsers and login. Get a new theme.

    You might have used a theme which contains functions/obfuscated code that requires the footer credit links to remain in theme.

    Thread Starter networkmom

    (@networkmom)

    It was just contact us link, advertising link. it was not any type of credit links I was trying to delete. i really want to use this theme can I rename and still use it?

    If you haven’t made too many modifications yet, you can delete the theme, and reinstall a fresh copy of it, which will undo any things you changed, and errors you created.

    Thread Starter networkmom

    (@networkmom)

    I just want to get rid of this at the bottom of my page, does anyone know how I would do this?
    Contact Us | Terms of Use | Trademarks | Privacy Statement
    this is the page it is on online-health-fitness.com

    Thread Starter networkmom

    (@networkmom)

    This is the code I deleted
    $default_footer_content = “Contact Us | Terms of Use | Trademarks | Privacy Statement

    Open up your theme’s footer.php and delete these two:

    <p>
    <?php
     global $default_footer_content;
     $footer_content = get_option('art_footer_content');
     if ($footer_content === false) $footer_content = $default_footer_content;
     echo $footer_content;
    ?>
    </p>

    Open up your theme’s functions.php, find and delete this:

    $default_footer_content = "<a href='#'>Contact Us</a> | <a href='#'>Terms of Use</a> | <a href='#'>Trademarks</a> | <a href='#'>Privacy Statement</a><br />Copyright &copy; 2010 ".get_bloginfo('name').". All Rights Reserved.";

    and

    array(  "name" => "Footer",
                    "desc" => sprintf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'kubrick'), 'a, abbr, acronym, em, b, i, strike, strong, span'),
                    "id" => "art_footer_content",
                    "std" => $default_footer_content,
                    "type" => "textarea")
    Thread Starter networkmom

    (@networkmom)

    I will give that a try, thank you!

    Thread Starter networkmom

    (@networkmom)

    This makes no sense to me when I tried to delete the lines in footer.php it said I could not do that, that they have to stay in place. Why is this it was nothing but links for me to add my info. on them.

    It sounds like you’re try to use some form of copyright protected theme. Where did you obtain this theme from?

    Thread Starter networkmom

    (@networkmom)

    What’s the name of the theme? Or can you give us the url of your site?

    Thread Starter networkmom

    (@networkmom)

    here is my site https://online-health-fitness.com/ and it is the links on the bottom that say contact us, privacy statement, etc…

    Looks like an Artisteer theme. The design credit link doesn’t actually go to a design site. It’s another sports site – which suggests the free theme is being used as some form of backlink generator.

    There’s no reason (that I can see) why the footer.php file should be protected or uneditable. This is not a premium or commercial theme.

    I’d recommend that you look for another theme. There’s nothing especially sports-orientated about the theme apart from the header image. and you can pick up free header images from somewhere like https://www.sxc.hu/

    Nothing special, nothing encrypted, it is an artisteer theme, logon to your WordPress > Admin > Appearance > Footer

    Edit or delete the Footer Option and save.

    If you cannot see the footer option in appearance then, from the admin page, change the address to admin/options.php

    Find the option art_footer_content and delete the contents “save changes”

    David

    Lots of Artisteer stuff on my websiste: https://www.digitalraindrops.net
    Also visit: https://www.artisteer.com/?forum_id=13&p=forum_topics

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Help! was trying to delete and something went wrong’ is closed to new replies.