Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    #290172

    Hi 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.
    #290196

    Parse 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.

    #290197

    I 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

    #290202

    Hey!

    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.png

    Regards,
    Yigit

    • This reply was modified 10 years, 5 months ago by Yigit.
    #290212

    I 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;
    }

    #290213

    So when the theme is updated this won’t get changed back ?

    Thanks

    #290214

    Follow 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.

    #290218

    Hey!

    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!
    Yigit

    #290219

    Hi!

    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,
    Yigit

    #290220

    Cool.

    Thanks again for all of the help!!

    #290224

    Hi!

    You are welcome Michael, glad we could help!
    Have a nice weekend!

    Regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change Socket Linkage’ is closed to new replies.