
-
AuthorPosts
-
April 11, 2018 at 11:41 am #940447
Hi everyone,
I am almost there with my website.
Now I have a question regarding the menu structure.
The website is bilingual (de/en, using Polylang).
The en home page is domain-name.com/en/home/
the de simply domain-name.com.
I created two pages, „Startseite” and „Home” which are also menu items.
I would like to use the logo (aka „Company Name”) only, as link to the landing pages (Startseite, Home).
My wish is to delete Home and Startseite from the menu and apply links to the logo (I don’t know where) to either domain-name.com (which would be the German site) or to domain-name.com/en which would be the English version.Is this doable?
Thanks and kind regards!
April 11, 2018 at 7:46 pm #940622I just realise that this wouldn’t make sense since I am entertaining a submenu attached to the ‚home‘ menu item. So let’s toss this minimalist idea.
How ever, one problem is still current: how can I install a link from the logo to certain pages? To be specific: to the home pages of my bilingual website?
Would I use this snippet? But how can I insert the two different requirements for de/en website?
add_filter(‘avf_logo_link’,’av_change_logo_link’);
function av_change_logo_link($link)
{
$link = “http://kriesi.at”;
return $link;
}Also, the url domain-name.com/en leads to a kind of blog-ish overview of all menu items. I have no idea where this comes from and how to remove it.
Thanks in advance!
April 12, 2018 at 12:13 pm #940879Hi,
I’m not all that familiar with Polylang, but I’m guessing they should have conditionals for checking the activate language? https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
Best regards,
RikardApril 12, 2018 at 4:19 pm #941020Hi Rikard,
I must admit I don’t unterstand what you are saying. And checking the link you posted I do even unterstand less.
The snippet I posted above doesn’t work, by the way. At least the functions.php doesn’t accept it.
So, how do I change the link that can be attached (if this is the right term) to the logo? Were can I edit this?
I have the logo, respectively the name of the website and when clicking on it I want the visitor to get to the home/start page.Thanks!
April 12, 2018 at 8:51 pm #941131I apologise for being impatient. But I have crawled this forum, the web and my back end to find a solution. It took me hours. Without results.
For you experts it would be done in two minutes, I guess.
PLEASE. Where and how can I change the url to which the logo/’company name’ in my header is linking to?April 13, 2018 at 6:45 am #941282Hi,
Thanks for the feedback, I’m not sure I understand your request anymore. I think this is what you are looking to solve, right?
how can I install a link from the logo to certain pages? To be specific: to the home pages of my bilingual website?
To do that you would have to check which language the site is currently on, and you would have to do that with Polylang conditional statements, or at least that is what I’m guessing. That is why I linked to their documentation in hope that you would find something useful in there.
If this is not what you are looking for then please try to explain a bit further. I’m also struggling to understand how this is theme related.
Best regards,
RikardApril 13, 2018 at 8:22 am #941329I already narrowed down my request in the last post. Irrespective of Polylang or not:
–> Where and how can I change the url to which the logo/’company name’ in my header is linking to?Thank you!
April 13, 2018 at 10:57 pm #941711Hi,
You cant change that on different language.
Those are permalinks and they are worked like that.Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.