Ok, today wanna be a geek has a new look! I've spend a lot of my time to edit this new look, and face a lot of problem when editing. The first problem is, I want to enable tagline in this new look, because when I use default template from Wordpress (twenty-ten), when I load the homepage, the site's tagline was shown. But after change to this new look, the result is -> no tagline! Ok, some templates don't show your site's tagline, but we can edit a little about your template so it can show your site's tagline in your browser!
<title>...</title>
After you found it, copy and paste code below, usually after this bloginfo code. Here is the example:
<title><?phpbloginfo('name');$site_description = get_bloginfo('description','display');if($site_description && (is_home() || is_front_page() ) ){echo " | $site_description";}......?></title>
I'll explain some of code above. So, code above will store your tagline (you can enter your tagline from Administration>Settings>General inside tagline textbox) in site_description variable and then the code above check if your current location is homepage or frontpage. If your position is in the homepage or frontpage, then it'll print site's tagline after site's title. If you're using Firefox, you can see it in your window titlebar, and if you're using Chrome, you can see it in your tab. Easy, right?
Ok, first thing first, calm your mind. Now, access your ftp and go to the directory where you upload your theme. The first option is, replace function.php and footer.php files with the fresh (you haven't edit it yet) function.php and footer.php. And ~ Taa-daaa.. Everything will back to normal! You can access your home page again.
The second option is, you must open your function.php and search for something like this:
sbbgre.cuc
What is it? It's a result of encryption from footer.php. Now edit it so it'll become like this:
sbbgr.cuc
Yup, just delete "e" from it. Don't forget to backup your footer.php file. After you backup it, now rename footer.php file into foote.php and save. Now, upload again footer.php backup file to your ftp and now you can edit your footer.php without being blocked. But, I suggest, don't remove anything from your footer.php, you can add something on it but don't delete anything there (for example links, designer, etc). Why? We must give out thanks to designer! Ok?
Hmm, maybe you want to know why we can't edit footer.php. It is because there is a code inside funtion.php that lock your footer.php. So if you change or add something on it, you'll unable to access your home page. And if you do the second option above, as long as you don't edit foote.php, you'll still able to access your home page and edit your footer.php, because you've edit code in function.php to lock foote.php, not footer.php.
So, understand now? More explanation, go to armana's site http://de-expert.web.id/cara-mengatasi-footer-php-yang-terkunci . It's in Indonesian, so if you don't understand, use Google Translate to help you translate it to your language. That's all guys. Hope this helps!
Reading i thought it was very informative. I appreciate you taking the time and effort to place this post together.
ReplyDelete