Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Michkael

  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?
  16. Hi guys, I am having problems upgrading the php in my local environment. I have cloned this vagrant LAMP rpeository (here) which comes with ubuntu 14.04 I have installed php5-gd I have upgraded php using the following: sudo apt-add-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0 Now the version is: PHP 7.0.33-5+ubuntu14.04.1+deb.sury.org+1 (cli) However when I try to install SEO Maestro, it tells me: Requires - PHP>=7.0.0, SeoMaestro Do you know what I should do? Otherwise, can you suggest me another local environment that comes already with php7? Thank you! Michael
  17. @Robin S Thank you very much. It is now very clear! Have a nice day sir.
  18. Good morning everyone, Reading the forum I have realised that a good practice is to include header and footer from external files. This works just fine, the problem now is that the metadata are in the header, precisely in the head. When I open the homepage template I have 2 fields for the metadata: the MetaPreview and the MetaDescription. The code below represents the code in the header.php: <title><?=$page->title;?></title> <!-- Site Meta Info --> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="description" content="<?=$page->MetaDescription;?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--<link rel="apple-touch-icon" href="apple-touch-icon.png">--> <meta property="og:type" content="website" /> <meta property="og:title" content="Blockchain Related Services"/> <meta property="og:image" content="<?=$page->MetaPreview->url;?>" /> <meta property="og:url" content="<?=$page->url;?>" /> <meta property="og:description" content="<?=$page->MetaDescription;?>" > <meta property="fb:app_id" content="330744850807211"> The $page->title works fine but the fields used for the metadata are not working, when I paste the url of the homepage, no preview and description pop-up. The exact same format using static HTML worked just fine. Do you have any suggestion?
  19. Good day, I want to do a page where I insert all kind of logos, icons images that I want to share externally. Examples: 1) In my email signature there are included the socials icons 2) When I need to share my logo to partners, I want to be able to send them an url linking to that image. At the moment I was doing an hidden page where are stocked all the images. I want to be able to call these images for example in the header (logo) or in some other pages on my website. Do you have any suggestion on the best strategy to do this? Thank you. Michael
  20. I am using, unfortunately, bootstrap framework v3. I have tried with panel unsuccesfully, do you have other advices?
  21. Good day, I have a problem that I would love to solve with only CSS if possible and if not, with JS or JQuery. I have a repeating element composed of images and some text below. The length of the text vary depending on the title of the article. I want to set the height of the repeating div equal to the height of the largest div. <?php $Art = $pages->get("name=Blog");?> <section id="<?=$Art->title;?>" class="mea-our-team-section section-padding section-dark"> <div class="container"> <div class="row"> <!-- Section Titile --> <div class="col-md-6 mea-title-section animated wow slideInLeft" data-wow-delay=".2s"> <h1 class="section-titile-bg"><?=$Art->title;?></h1> <h1 class="section-title"><?=$Art->title;?></h1> </div> <!-- Section Quote --> <div class="col-md-6 mea-section-quote wow animated slideInRight" data-wow-delay=".2s"> <p><?=$Art->BlogBody;?></p> </div> </div> <div class="row mt-20 wow animated fadeInUp" data-wow-delay=".3s"> <div id="team-carousel" class="owl-carousel owl-theme"> <?php foreach($Art->children() as $Art): $image = $Art->ArticleImage; $image = $image->size(287, 160);?> <div class="item"> <!-- Single Team Widget --> <div class=""> <div class="single-blog-widget"> <img src="<?=$image->url;?>" class="center-block img-responsive" alt=""> <div class="blog-info"> <div class="know-more"> <a class="btn btn-round btn-fab btn-xs" href="<?=$Art->url;?>"><i class="material-icons">&#xE5C8;</i><div class="ripple-container"></div></a> </div> <a href="<?=$Art->url;?>"><h2 class="subtitle"><?=$Art->ArticleHeadline;?></h2></a> <p><?=$Art->ArticleBody2;?></p> </div> </div> </div> </div> <?php endforeach;?> </div> </div> </div> </section> Here below you find attached an image of the website. Thank you!
  22. Thank you for the time you took to answer. @Peter Knight unfortunately I am using bootstrap on this template, the next time I will consider uikit, this is not the first time people suggest me to switch ? @szabesz Thank you thank you. Now I see how it works. This answer should be pinned as tutorial for CKEditor!
  23. I am very sorry for the ignorance but I don't know where to put the CSS file. CSS admin goes here -> /* /site/templates/styles/admin.css */ JS here -> // /site/templates/scripts/cke.js and the CSS CKEditor where should it go? The other link you pasted says you have to put the styles in : mystyles:/site/modules/InputfieldCKEditor/mystyles.js could you please explain me the difference? For the module fluid image it adds aconfigurable CSS class, but where? Thank you for your help @szabesz
  24. I am using bootstrap. I introduce the images via a field and upload them using the built-in image loader in CKEditor. There I can modify the size but it won't be responsive. Isn't there a way to set only one dimension and let the other scale or something similar? You can see the front-end on full screen, half screen and mobile in the attached images. Moreover, If I add the string <br> in CKEeditor it print it out without converting it in a new line. And if I create the space pressing shift+enter, the processes version ignores it and stick all (images and text) togheter. Do you know why? I have tested ACF on/off, HTML purifier on/off, allow extra content <br> all succesless. @Peter Knight Thank you for your support! @szabesz I have noticed now your reply, I am gonna check it right now.
  25. Thank you for your answers @Peter Knight. Maybe you can help me with this additional question: To put the least limitation possible, I let people insert images in the textarea field thanks to CKEditor. Now the single image is not anymore in the responsive class, hence the size is not correct and when I decrease the screen size, the image is not resized. I a normal case I would go and create a new style in the css, how should I proceed in PW? Consider that there are at least 3 required sizes (notebook, tablet and phone). Thank you
  • Create New...