Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #4509506
How to serve AMP versions of the single posts
Closed

Comments

  • natmaynez started the conversation

    Hi! I recently came back to post on my blog and wrote this article in Spanish: https://mayneza.com/como-crear-abundancia/

    But Search Console immediately gave me an warning that the /amp version of it is not properly loading with Google (SEE ATTACHED IMAGE).

    What do I need to activate on the theme to correct this?

    Thanks,

    Attached files:  Captura de pantalla 2025-10-25 a las 14.33.20.png

  •   PenciDesign replied privately
  •   natmaynez replied privately
  •  3,019
    PenciDesign replied

    Hi,

    I’ve checked the URL you sent, and it seems that the content might have been generated by AI. It contains a JSON script with invalid syntax, which caused Google to flag it as an issue. Please review all the content and code you’ve added to the main post content, then check again.

    Screen-Shot-2025-10-27-at-08-56-50.png

    Regards,
    PenciDesign.

  • natmaynez replied

    Yes, it's an intentional rich snippet code for Google with FAQs, and I have tested the blog post https://mayneza.com/como-crear-abundancia/ through their tester here https://search.google.com/test/rich-results and it says it's valid, so that's why I thought it may be something related to how the AMP version is being served.

    I tried to troubleshoot with Chat GPT and I think the issue is that, when I update the article, the code is being inserted being surrounded by <p> tag, which shouldn't be because I'm not adding it, but I don't know how to avoid this. This is the code that I'm pasting in the HTML version of the old editor and the issue is that automatically, once saving changes somehow that new line of paragraph is being inserted.

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "¿Cuáles son los beneficios de practicar la gratitud?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Practicar gratitud mejora el bienestar emocional, reduce el estrés, fortalece las relaciones y promueve una mentalidad positiva. Estudios de Harvard, UCLA y UC Berkeley confirman que aumenta la felicidad y la satisfacción con la vida."
          }
        },
        {
          "@type": "Question",
          "name": "¿Cómo puedo practicar la gratitud cada día?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Puedes comenzar escribiendo tres cosas por las que te sientes agradecido en un Diario de Gratitud. Este sencillo hábito, practicado solo cinco minutos al día, entrena la mente para enfocarse en lo positivo."
          }
        },
        {
          "@type": "Question",
          "name": "¿Por qué la gratitud está relacionada con la abundancia?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "La gratitud cambia la percepción de carencia por la de plenitud. Al agradecer, activas un enfoque de abundancia que te permite reconocer lo que ya tienes y atraer más bienestar y oportunidades."
          }
        },
        {
          "@type": "Question",
          "name": "¿Qué es un Diario de Gratitud o Gratitude Journal?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Un Diario de Gratitud es una herramienta práctica para escribir tus agradecimientos diarios, reflexiones y aprendizajes. Está diseñado para ayudarte a mantener una actitud positiva y consciente en solo cinco minutos al día."
          }
        },
        {
          "@type": "Question",
          "name": "¿Cuál es el mejor Diario de Gratitud para comenzar?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Mi Diario de Gratitud de Mayneza es un cuaderno de 90 días con frases inspiradoras, afirmaciones y ejercicios semanales, creado para entrenar tu mente en el hábito de agradecer y atraer abundancia."
          }
        }
      ]
    }
    </script>

    Any thoughts on how I can make this JSON code be valid in Search Console? The code itself is OK because you can verify it on the tab "code" in the Rich Test Google Tester https://search.google.com/test/rich-results so it's the way it's being inserted I guess.

    Attached files:  Captura de pantalla 2025-10-27 a las 11.50.54.png

  •  3,019
    PenciDesign replied

    Hi,

    You should switch the editor mode to Classic, paste it at the end of the current post content, and then check again.

    Regards,
    PenciDesign.

  • natmaynez replied
    6385977638.pngyes I'm actually doing that, and still.
  •  3,019
    PenciDesign replied

    Hi,

    In this case, I recommend installing the Header and Footer Scripts plugin and following the documentation guide at this link: https://wordpress.org/plugins/header-and-footer-scripts/ 

    You should paste the JS code into the metabox created by the plugin on the single post editor screen. This will help prevent any display issues with the JavaScript.

    Regards,
    PenciDesign.

  • natmaynez replied

    You're a genius, I think that worked! And do you know if that header script I'm adding in the single post editor for each article will only be applied to that specific entry / single post? Or to all the website? I need it to work in the specific entry / single post level as this JSON FAQs are dependent on the topic. 

    Ok, I'll try that and keep you posted. In the meantime, do you know how I can add my logo to the AMP version where I'm pointing on the attached screenshot?

    Thanks so much again for your time and patience!


    Attached files:  IMG_6218.jpg

  •  3,019
    PenciDesign replied

    Hi,

    The custom scripts you added in the post editor screen only appear on the specific post where they were added; they don’t display across the entire site.

    For the AMP logo, you can customize it by going to Appearance → Customize → AMP → Header → Logo.

    Regards,
    PenciDesign.

  • natmaynez replied

    thank you! if in the future I want to stop serving amp versions on mobile where can it be deactivated?

  •  3,019
    PenciDesign replied

    Hi,

    You can deactivate the Penci Soledad AMP plugin to stop serving the AMP layout to mobile users.

    Regards,
    PenciDesign. 

  • natmaynez replied

    Thank you very much! All sorted.