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 #1776102
AMP page
Closed

Comments

  • ermesagencysrls started the conversation

    Hello, the AMP validator gives me an error in relation to a VIBER function.

    Here is the answer of the validator:

    Invalid URL protocol 'iber:' for attribute 'href' in tag 'a'. DISALLOWED_HTML
    line 1, column 50024

    I don't use VIBER. 

    How can I solve?


    Thanks

  • ermesagencysrls replied

    I've temporary solved with a REPLACEMENT php snippet


    function replace_content($content)
    {
    $content = str_replace('##Replace Me##', '##With Something Else##',$content);
    return $content;
    }
    add_filter('the_content','replace_content');


    I'm waiting for a better solution if possible


    thanks


  •  501
    Penci replied

    Hi,

    I check amp on your site. Strange, I don't see error.

    Please check screenshot : http://prntscr.com/lfw1x3, http://prntscr.com/lfw2lb

    Please send me  screenshot this issue.

    Best Regards,

    PenciDesign

  • ermesagencysrls replied

    As I wrote i've temporary solved with a REPLACEMENT php snippet

    function replace_content($content)
    {
    $content = str_replace('##Replace Me##', '##With Something Else##',$content);
    return $content;
    }
    add_filter('the_content','replace_content');

    so you currently do not see problems in the test.
    Will the error be corrected in the future?
    In the original code of the template i think you can see the errore , but with this workaround in the meantime disappears.


  •  501
    Penci replied

    Hi,

    Strange, I did not find the error as same you.

    Please send me your website management information ( admin url site, username and password)  in order  for me to have access to know exact issue.


    Best Regards,

    PenciDesign

  •   ermesagencysrls replied privately
  •   ermesagencysrls replied privately
  •  501
    Penci replied

    Hi,

    I think we have to wait for google validate again.

    I check again your site with  AMP Test - Google Search Console and The AMP Validator.  I don't see error.


    Best Regards,

    PenciDesign

     

  • ermesagencysrls replied

    ok I'm waiting for the validation of Google.

    Only I'll point out: inthe code (from screenshot):  The letter V is missing from the word VIBER in this string:
    href = "iber: // forward? text = Check out .. .. ..

  •  501
    Penci replied

    Hi,

    I forget. When you uncheck "Show Share Box" option ( http://prntscr.com/llh5i9 ), share box on your website only display none but isset markup. Please try go go Appearance > Customize AMP > Post Options , then check list option:

    •  Hide Facebook Share Button
    •  Hide Twitter Share Button
    •  Hide Google Plus Share Button
    •  Hide Pinterest Share Button
    •  Hide Linkedin Share Button
    •  Hide Tumblr Share Button
    •  Hide Reddit Share Button
    •  Hide Stumbleupon Share Button
    •  Hide Whatsapp Share Button
    •  Hide Telegram Share Button
    •  Hide Email Share Button
    •  Hide Digg Share Button
    •  Hide Vk Share Button
    •  Hide Line Share Button
    •  Hide Viber Share Button


    Please check  screenshot: http://prntscr.com/llh57h


    Best Regards,

    PenciDesign


  • ermesagencysrls replied

    Ok. I did as you reported (see screenshot)

    Check the search console to see if google still warns of the error

    Thank you