WordPress.org

Ready to get started?Download WordPress

Forums

Difficulty with footer.php (5 posts)

  1. km2100
    Member
    Posted 2 years ago #

    I am interested in editing the footer credits on my site, but after locating the code I have been unable to add my desired information. I noticed the exact wording of the footer in my function.php panel, but when I proceeded to make changes my entire site went white with an error message. Any help is great. My information is below.

    Site: http://www.keenanmorgan.com

    footer.php (credit-line):

    <div id="creditline">© <?php echo date("Y") ?> <?php bloginfo( 'name' );  d5businessline_credit(); ?></div>

    funtion.php (credit-line)

    //	D5 BusinessLine and WordPress Credit
    	function d5businessline_credit() {
    		echo '| D5 Business Line Theme by: <a href="http://d5creation.com"><img  width="30px" src="' . get_template_directory_uri() . '/images/d5logofooter.png" /> D5 Creation</a> | Powered by: <a href="http://wordpress.org">WordPress</a>';
    	}

    [please mark any posted code according to the forum guidelines - the above code is partly corrupted]

  2. Beninspain
    Member
    Posted 2 years ago #

    If you are making a static footer just make sure you get rid of the whole php strings...

    Then you can ignore the line in function.php..

    So it becomes something like this

    <div id="creditline">© <p>here your own html content</p></div>

    You can then style the footer in style.css under
    #creditline {}

    Hope that helps

  3. Jose Castaneda
    Member
    Posted 2 years ago #

    I have a feeling that the theme is purchased, correct? If so, then we really cannot provide you with help. Sorry.

  4. alchymyth
    Forum Moderator
    Posted 2 years ago #

    when I proceeded to make changes my entire site went white with an error message.

    what changes exactly? and what was the exact error message?

    editing the footer credits on my site

    what do you want to edit or insert?

    btw:
    the used theme is http://wordpress.org/extend/themes/d5-business-line

  5. km2100
    Member
    Posted 2 years ago #

    Hello everyone,

    Problem solved! Beninspain's solution fixed it! And thank you very much. Thank you all for your responses. (Jcastaneda) The theme is offered for free through WordPress and to my knowledge it is one of the more recent themes made available. I've done some modifying of course, but if you search for the D5 Business Line theme you should be able to locate it. (Alchymyth) The changes I made were to the "creditline" info in the functions.php panel. I replaced their existing information with my own. (See example below). I cannot remember the error message verbatim, but I do recall the screen becoming all white with a bold black code at the top that contained my ftp information (user name and host). After the screen turned white I was unable access the login page for my wordpress, so I had to replace the functions.php file to rectify my error.

    Ex. (Replaced the highlighted areas with <p> © 2012 KeenanMorgan.com </p>)
    // D5 BusinessLine and WordPress Credit
    function d5businessline_credit() {
    echo '| D5 Business Line Theme by: <img width="30px" src="' . get_template_directory_uri() . '/images/d5logofooter.png" /> D5 Creation | Powered by: WordPress';
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.