Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

[SOLVED] Editing theme functions.php file


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 18, 2011, 11:56 PM
azazure
 
25 posts · Jan 2011
Gilbert, AZ
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>
';
}

?>
  #2  
Old Feb 19, 2011, 03:21 AM
juggledad's Avatar
juggledad
 
22,265 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Why are you doing that? Why not use the ato->Style & edit HEADER AREA->Show Logo Image? option.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 19, 2011, 07:57 AM
azazure
 
25 posts · Jan 2011
Gilbert, AZ
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.
  #4  
Old Feb 19, 2011, 09:25 AM
juggledad's Avatar
juggledad
 
22,265 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
?? 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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 19, 2011, 11:57 AM
azazure
 
25 posts · Jan 2011
Gilbert, AZ
The dashboard user profile located at http://iaftp.org/wp-admin/profile.php
  #6  
Old Feb 19, 2011, 04:35 PM
azazure
 
25 posts · Jan 2011
Gilbert, AZ
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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '<' in the functions.php file pingitt Atahualpa 3 Wordpress theme 6 Mar 12, 2013 03:52 AM
Can no longer access my theme functions file Timeless Gourmet Atahualpa 3 Wordpress theme 1 Nov 16, 2010 11:02 AM
PHP Catchable fatal error: themes/atahualpa/functions/bfa_meta_tags.php on line 169 Shamisen Plugins & Atahualpa 0 Apr 6, 2010 10:43 PM
Which php file should I Edit to Insert Opt In form in SideBar for Atahualpa Theme? kacang Sidebars & Widgets 0 Aug 1, 2009 03:41 AM
How to use export.php script file to save theme changes? Andante New Versions, & Updating 1 Mar 22, 2009 06:36 PM


All times are GMT -6. The time now is 06:55 AM.


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