-
AuthorPosts
-
February 27, 2024 at 12:47 pm #1435585
Hello,
When I click on the logo in the header, the page reloads. However, I would like to go to the start page by clicking on the logo.
In the functions.php of the child theme, I have built in the following code:add_filter(‘avf_logo_link’,’av_change_logo_link’);
function av_change_logo_link($link)
{
$link = “XXXX”;
return $link;
}How could I still fix the problem?
VG
Sven
February 27, 2024 at 6:16 pm #1435627I would like to go to the start page by clicking on the logo.
this is standard behavior of Enfold setting ( WordPress on general). So if this is not the case there had to be something ( maybe allready in your functions.php) that hampers this action.
So what is exactly on your code in the XXXX part. Or just get rid of that entry. And have a look what happens then.
February 28, 2024 at 8:22 am #1435676Hi,
Thank you for the inquiry.
As mentioned by @Guenni007 above, this is the default behavior of the logo link when clicked. If you’re on a different page, the site will have to reload in order to redirect to the home page.
Best regards,
IsmaelFebruary 28, 2024 at 9:58 am #1435701the problem seems to be that all pages do only reload. So there must be a setting in his installation that overrides the default behavior ( namely to redirect to the homepage ).
February 28, 2024 at 1:59 pm #1435743Thank you very much for your quick help.
Exactly, currently the page is reloading. I would like to link to the mainpage. I have included the link for “XXX” that I had marked as private during the first posting.
At which point could a corresponding code still be stored? There is nothing to be found in the Function.php of the child theme / the main theme and the Quick CSS.
Best regards,
Sven
February 28, 2024 at 3:20 pm #1435766What if you erase that snippet. The normal behavior is exactly what you try to achive.
What is the reason for that existing snippet in your functions.php?February 28, 2024 at 4:14 pm #1435774I erased the code, but the problem is still there…
February 28, 2024 at 6:54 pm #1435787Hi,
Thanks for the update. Are you using any plugins which might be altering the default behaviour?
Best regards,
RikardFebruary 28, 2024 at 7:32 pm #1435804After erasing the snippet – did you refresh enfold merging – or delete Cachings ( Browser Caching, maybe any other caching tools)
-
AuthorPosts
- You must be logged in to reply to this topic.