-
AuthorPosts
-
March 15, 2019 at 6:19 pm #1079202
Hey guys — is there a way for me to redirect the logo to go to a different url (not the theme home page)?
please let me know!
March 15, 2019 at 9:19 pm #1079240Hey creatiffco,
Please refer to the following:
Best regards,
Jordan ShannonMarch 15, 2019 at 9:55 pm #1079264Hey Jordan, I saw that post! But It looks like there was several solutions. Should I just try the functions.php one?
March 15, 2019 at 10:14 pm #1079281Hi,
Yes the solution I linked directly to.
Best regards,
Jordan ShannonMarch 16, 2019 at 8:55 pm #1079495Hey I tried this to my functions.php file but i was getting an error. please help. I was adding it at line 747
add_filter(‘avf_logo_link’,’av_change_logo_link’);
function av_change_logo_link($link)
{
$link = “http://kriesi.at”;
return $link;
}Error message: “Scrape nonce check failed. Please try again.”
March 17, 2019 at 5:22 pm #1079660Hi creatiffco,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMarch 17, 2019 at 7:21 pm #1079696Sure! Log in credentials are below.
March 19, 2019 at 8:31 am #1080245Hi creatiffco,
Thank you. Have you tried the solution posted here?
And the code from the prev reply should be added around line 18 in functions.php. Even better it has to be in the child theme.
Best regards,
VictoriaMarch 27, 2019 at 3:45 pm #1083673I tried to add this:
function change_logo_link(){
?>
<script type=”text/javascript”>
(function($){
function change_logo_link() {
jQuery(“#header_main”).find(“.logo a”).attr(“href”, “http://www.google.com/”);
}change_logo_link();
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘change_logo_link’);t
but I got this error message:
“Scrape nonce check failed. Please try again.”help!
March 28, 2019 at 9:28 pm #1084280Hi creatiffco,
This code looks very incorrect:
function change_logo_link(){ ?> <script type=”text/javascript”> (function($){ function change_logo_link() { jQuery(“#header_main”).find(“.logo a”).attr(“href”, “http://www.google.com/”); } change_logo_link(); })(jQuery); </script> <?php } add_action(‘wp_footer’, ‘change_logo_link’);t
Please try this code:
function change_logo_link(){ ?> <script type="text/javascript"> jQuery(window).load(function($){ $("#header_main").find(".logo a").attr("href", "http://www.google.com/"); }(jQuery)); </script> <?php } add_action('wp_footer', 'change_logo_link');
Best regards,
VictoriaMarch 28, 2019 at 9:44 pm #1084297I added that new code – at the bottom of functions.php but it’s not working.
I still get this: Scrape nonce check failed. Please try again.
So sorry! I’m not trying to be confusing. You have admin access, feel free to log in to try. we want the logo to be directed back to the url in the private content below.
March 28, 2019 at 10:07 pm #1084306Hi,
I am not sure why overwriting files in editor is not working but i think it may be related to your server settings.
Please try going to /wp-content/themes/enfold/functions.php and add following code to the bottom of the file
// Change Logo link add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link) { $link = "https://kriesi.at"; return $link; }
If you would like us to do it for you, please post FTP logins here privately as well.
Regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.