-
AuthorPosts
-
July 11, 2014 at 4:18 pm #290163
I would like to change the Socket linkage settings. Right now it links to Enfold Theme by Kriesi, I would like to have it changed to Admin Login and then change the link to domain.com/wp-admin.
I know I can go in to the CSS and change it in there but I am sure that will change back when the theme is updated. What can I add to make this happen with out going in to the Footer.php?
Thanks.
July 11, 2014 at 4:37 pm #290172Hi Micheal0424!
Please add following code to Functions.php file in Appearance > Editor
` add_filter('kriesi_backlink', 'avia_backlink'); function avia_backlink() { $kriesi_at_backlink = ' <a href="'.home_url('/wp-admin').'">Admin login</a>'; return $kriesi_at_backlink; } `
Best regards,
Yigit- This reply was modified 10 years, 5 months ago by Yigit.
July 11, 2014 at 5:35 pm #290196Parse error: syntax error, unexpected end of file in /home/content/p3nexnas05_data01/84/2127184/html/wp-content/themes/enfold/functions.php on line 492
The site is not working now, I got the error message above.
July 11, 2014 at 5:36 pm #290197I tried to back page and remove what was added and then save that and I get the same error message.
How do I fix this?
Thanks
July 11, 2014 at 6:04 pm #290202Hey!
Please connect via FTP and remove the code from functions.php file. After that, if you do not mind, please post a temporary admin login so i can add the code for you
It works fine on my local installation – http://i.imgur.com/RvyjMmT.pngRegards,
Yigit- This reply was modified 10 years, 5 months ago by Yigit.
July 11, 2014 at 6:25 pm #290212I was able to fix it, thanks.
What caused the problem was I copied this:
add_filter('kriesi_backlink', 'avia_backlink'); function avia_backlink() { $kriesi_at_backlink = ' <a href="'.home_url('/wp-admin').'">Admin login</a>'; return $kriesi_at_backlink; }
I should have only copied this:
add_filter(‘kriesi_backlink’, ‘avia_backlink’);
function avia_backlink() {
$kriesi_at_backlink = ‘ Admin login‘;return $kriesi_at_backlink;
}July 11, 2014 at 6:25 pm #290213So when the theme is updated this won’t get changed back ?
Thanks
July 11, 2014 at 6:28 pm #290214Follow up question:
How do I add another link beside it?
2014 © Copyright – Website Admin login | Text Link (to open in a new window)
How do I make this happen?
Thanks.
July 11, 2014 at 6:31 pm #290218Hey!
From the error you posted earlier it seems like you have added the code to functions.php file of your parent theme. In that case it will get lost when the theme is updated. You can create a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and add the code to functions.php file of your child theme and avoid losing the changes you make on theme files
Cheers!
YigitJuly 11, 2014 at 6:35 pm #290219Hi!
You can add it using HTML in the code as following
` add_filter('kriesi_backlink', 'avia_backlink'); function avia_backlink() { $kriesi_at_backlink = ' <a href="'.home_url('/wp-admin').'">Admin login</a> | <a href="your link goes here" target="_blank">Text link</a>'; return $kriesi_at_backlink; } `
Regards,
YigitJuly 11, 2014 at 6:36 pm #290220Cool.
Thanks again for all of the help!!
July 11, 2014 at 6:41 pm #290224 -
AuthorPosts
- The topic ‘Change Socket Linkage’ is closed to new replies.