Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

custom_fuctions.php file for Thesis Theme problems


  • Please log in to reply

#1
deadturkey12

deadturkey12

    New Member

  • Member
  • Pip
  • 4 posts
When I attempt to upload my custom_functions.php file to my website via ftp that works fine and it takes effect on the website. The one problem is I get an error when I look in the file editor for that file inside wordpress and it says that error on the website. I am not to familiar with any coding language so I don't know what the error is for the file. If someone who is familiar with coding could take a look at it and let me know, that would be great. The error I get when the file takes effect on the website is
Warning: Cannot modify header information - headers already sent by (output started at /home6/seoexpe3/public_html/wp-content/themes/thesis_17/custom/custom_functions.php:1) in /home6/seoexpe3/public_html/wp-pass.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /home6/seoexpe3/public_html/wp-content/themes/thesis_17/custom/custom_functions.php:1) in /home6/seoexpe3/public_html/wp-includes/pluggable.php on line 897.

The custom_functions.php file I copy and pasted down below.

<?php

// Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins,
// custom design elements, and ads. You can add your hook calls below, and they should take the
// following form:
// add_action('thesis_hook_name', 'function_name');
// The function you name above will run at the location of the specified hook. The example
// hook below demonstrates how you can insert Thesis' default recent posts widget above
// the content in Sidebar 1:
// add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts');

// Delete this line, including the dashes to the left, and add your hooks in its place.

/**
* function custom_bookmark_links() - outputs an HTML list of bookmarking links
* NOTE: This only works when called from inside the WordPress loop!
* SECOND NOTE: This is really just a sample function to show you how to use custom functions!
*
* @since 1.0
* @global object $post
*/

function custom_bookmark_links() {
global $post;
?>
<ul class="bookmark_links">
<li><a rel="nofollow" href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com...e&#38;url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li>
</ul>
<?php
}

remove_action('thesis_hook_footer', 'thesis_attribution');

add_filter('admin_footer_text', 'remove_footer_admin');

function add_search_nav() { ?>
<li class="search"><?php thesis_search_form(); ?></li>
<?php }

add_action('thesis_hook_last_nav_item','add_search_nav');

function add_custom_footer () {
?>
<p>
<a href="http://www.seoexpert...>Disclaimer</a> |
<a href="http://www.seoexpert...policy">Privacy Policy</a> |
© Copyright 2011 SEO Expert for You. All rights reserved.
</p>

<?php
}
add_action('thesis_hook_footer', 'add_custom_footer');

function custom_header() { ?>
<p id="logo"><a href="http://www.seoexpert...you.com/"><?php bloginfo('name'); ?></a></p>
<h1 id="tagline"><?php bloginfo('description'); ?></h1>
<?php
}
remove_action('thesis_hook_header', 'thesis_default_header');
add_action('thesis_hook_header', 'custom_header');
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'thesis_nav_menu');
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP