Jump to content

Michkael

Members
  • Posts

    48
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Michkael's Achievements

Jr. Member

Jr. Member (3/6)

5

Reputation

  1. I am encountering a weird problem. My HTML code looks like this: <!doctype html> <html class="no-js" lang="" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"> <head> <!-- Site Title --> <title><?=$page->title;?></title> <!-- Site Meta Info --> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo $page->SeoMenu;?> . . Obviously the title tag appears twice and I want to avoid it. By removing the title tag, the website becomes very slow and i am unable to acces the admin panel (stuck at loading). The page I am working on is the homepage of the website. Thank you.
  2. It works perfectly. thank you @Autofahrn! I don't know why I wanted to use Jquery at all costs ^^ I post How I did it at the end, hopefully it will help someone in the future, don't look at the code, it is pretty ugly ^^ If you criticise it I am open! The website is brightnode.io First there is the notebook menu and then the mobile version. <div class="container"> <nav role="navigation" id="nav-main" class="okayNav">
  3. Hi guys, I am using bootstrap 3.3.7 and I am adding the language menu to the navigation menu. The item printed is nested as follows: nav>ul>li>a I now want to have the selected language somehow highlighted and it should not be clickable since it is already the active item. I have very little experience with JQuery, but I have read you can add an active item this way, could someone please explain that to me? In the template I am using the menu uses the function scrollspy. I would like to get something close to what you can see on this website. Thank you very much Michael
  4. Thank you, I will check that. Btw at the moment I wanted to remove the SEO Maestro just for a testing purpose but everytime I uninstall it, it reappears in my installed modules. Moreover the sitemap.xml, I have moved it back to sitemap.seomaestro.xml but it keeps appearing also at sitemap.xml.
  5. Thank you @Wanze. Could it be that I haven't taken any precaution passing from a single to a multi-language website? Could it be that the previous url redirect to the new and it starts looping?
  6. This morning it was working, just before I set the sitemap.xml using the SEO Maestro. Before I was using the XML markup sitempa module. The fact that the sitempa is fed to search console could affect anway?
  7. Now if you check the hreflang does not appear anymore on the metadata but the 301 redirect is still there....
  8. @dragan thank you for your answer. Can you suggest me what and in what order should I check? I can say that those lines are generated by the Seo Maestro because when I have removed the field from a page, the lines disappeared. On its page I have found that the hrelang are common metadata that are generated automatically and they cannot be managed by the field. I managed to only load the opengraph and metadata I am interested in, but now I have a question: How important are hreflang for a multilanguage website? How can I manually populate them? Thank you
  9. I am still here unfortunately. I am having problem with the metadata generation and I don't understand if it is this module or what. When I analyse my url on linkeding post inspector, I get this error: "We detected a redirect loop while following the redirect trail from https://xxx.io/en/blog/the-future-xxx/, so we will not scrape this content." When i open the source code of the page I find this: <link rel="alternate" href="https://xxx.io/en/blog/the-future-xxx/" hreflang="en"> <link rel="alternate" href="https://xxx.io/en/blog/the-future-xxx/" hreflang="x-default"> <link rel="alternate" href="https://xxx.io/it/blog/il-futuro-xxx/" hreflang="it"> <meta name="viewport" content="width=device-width, initial-scale=1"> Can you help me out? Do you know why it is doing so?
  10. if(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2) != 'en') { This line does not care about the region? Just about the set language, right? If en is the default language, should I somehow change the code?
  11. Hi guys, General Info I have a website with two set languages: default (en) and italian (it). I have used the multi-language field. Moreover I am using the awesome new module "SEO maestro" to populate the metadata. At the moment I have not set any auto-redirect code based on the browser language. Problem on linkedin I was trying to share a new post I wrote but when I test the url on linkedin post inspector I get: We detected a redirect loop while following the redirect trail from https://brightnode.io/, so we will not scrape this content. The website appears twice, with the same language. What I see on the source code of the page So when I look at the source code I see that both x-default and "en" exist: <link rel="alternate" href="https://aaa.io/en/blog/the-future-o.../" hreflang="en"> <link rel="alternate" href="https://aaa.io/en/blog/the-future-o.../" hreflang="x-default"> <link rel="alternate" href="https://aaa.io/it/blog/il-futuro-o.../" hreflang="it"> <meta name="viewport" content="width=device-width, initial-scale=1"> Now i am wondering if the hreflang is affecting the outcome of linkedin or what do I have to change to avoid this mistake. I hope I gave all the details necessary. Thank you for your help. Michael
  12. Good day, I have recently added a second language to my website and damn... processwire and its module are priceless! When I tried to automatically redirect the people to their set-up browser language, I encountered a problem with the metadata on linkedin. The error on linkedin was saying that the page was redirected in loop and hence they were not posting the metadata. The following code was right after the </header> in my _head.inc: <?php if(!$session->get('setLang')) { if(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2) != 'en') { $session->set('setLang','2'); $url = $page->localUrl('Italiano'); $session->redirect($url); } $session->set('setLang','1'); } ?> When I remove it, it works fine. Do you have any idea on how to obtain the same result, avoiding redirect loops problems? Thank you very much. Michael
  13. @adrian Thank you for all the usefull informations! You were right, apache was using the old version, I had to update it with: sudo a2dismod php5 sudo a2enmod php7.0 sudo service apache2 restart Do you have any suggestion on other types of testing environemnt than the one I have cited above? Is it possible working on the same repository, to both update a testing environment + local database and the live version + live database? (obviously after pushing to git in my case).
  14. Hey Wanze, Thank you very much for your answer! I will submit it to google search console to see the result. Keep up the great work! Michael
  15. Hey Wanze, nice Job! One question, how am I supposed to see the sitemap.xml? At the moment the format is like this: http://localhost:8888/ 2019-03-13T14:38:29+00:00 monthly 0.5 http://localhost:8888/it/ 2019-03-13T14:38:29+00:00 monthly 0.5 http://localhost:8888/en/blog/ 2019-03-13T16:37:47+00:00 monthly 0.5 http://localhost:8888/it/blog/ 2019-03-13T16:37:47+00:00monthly 0.5 Moreover, you were talking about adding it as a tab using InputFieldsetOpen, can you point out where I can find more details about it?
×
×
  • Create New...