Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Forum How-To (http://forum.bytesforall.com/forumdisplay.php?f=9)
-   -   [SOLVED] Editing theme functions.php file (http://forum.bytesforall.com/showthread.php?t=12882)

azazure Feb 18, 2011 11:56 PM

[SOLVED] Editing theme functions.php file
 
I am having problems editing the Atahualpa theme functions file to recognize anything. In the example below I'm trying to replace the dashboard logo and nothing happens. No matter what function I put in here nothing ever happens. I've tried putting my code inside the main php body as well as creating a new php area as seen here. I've spent hours on this and can't figure it out. Thank you.

<?php

// Replace dashboard logo
add_action('admin_head', 'my_custom_logo');

function my_custom_logo() {
echo '
<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/32x32_Wings.png) !important; }
</style>
';
}

?>

juggledad Feb 19, 2011 03:21 AM

Why are you doing that? Why not use the ato->Style & edit HEADER AREA->Show Logo Image? option.

azazure Feb 19, 2011 07:57 AM

That location in the ATO is for the logo on the home page. The logo I'm trying to replace is the WordPress "W" on the user profile page. I found this code snippet doing a search and made sure it was to be placed in the Theme's functions file and not in the WP functions file. I really appreciate your help and I love this theme.

juggledad Feb 19, 2011 09:25 AM

?? when you say 'logo I'm trying to replace is the WordPress "W"' do you mean on the logon page or in the backend in the dashboard->User->Your profile?

Neithor are part of the theme

azazure Feb 19, 2011 11:57 AM

The dashboard user profile located at http://iaftp.org/wp-admin/profile.php

azazure Feb 19, 2011 04:35 PM

I FINALLY figured out why I was having problems with the above code for the theme functions.php file. Using "//" before the comments was not allowing the code to be read for some reason. Since I like to document everything, I found that using /* and */ on the comments allowed everything to work perfectly. Thanks juggledad, sorry to bother you with this.


All times are GMT -6. The time now is 03:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.