By Paul Squires on Thursday, 31 May 2018
Posted in Technical Issues
Replies 3
Likes 0
Views 595
Votes 0
Hi guys

We have a regular piece of content going into EasyBlog. It's quite a long and complex piece, and the easiest way to get it into EB is to copy the original HTML and to paste it into an HTML block in EB.

Here's an example of the content in web form:
https://www.imperica.com/en/web-curios-25-05-18

However, it doesn't render in AMP:
https://www.imperica.com/en/web-curios-25-05-18?format=amp

I tested it by pasting it into a new text block, and that rendered fine.

I don't really want to move away from using an HTML block if possible, as it's by far the easiest way for us to import this content. However, at the moment the only way that I can think of preventing this is to hack into the PHP view and removing the AMP meta tag.

Is there a better solution...?

Thanks in advance,
Paul
Hi there,

Currently, amp does not support html type It is based on amp itself as we built this based on their requirement currently. Maybe you found a way, you can edit them here .../components/com_easyblog/themes/wireframe/blogs/entry/amp.php and let us know whether it is working or not.

Please advice.
·
Thursday, 31 May 2018 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Abdul. I removed the AMP feature by editing components/com_easyblog/views/entry/view.html.php and removing the following chunk:

// Add AMP metadata on the page
if ($this->config->get('main_amp')) {
$this->amp($post->getPermalink(true, false, 'amp'), false);
}


Cheers
Paul
·
Saturday, 09 June 2018 21:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

If you want to turn off AMP integrations, you don't really need to hack the codes. It can be turned off in the settings, http://take.ms/A3Kdf
·
Sunday, 10 June 2018 14:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post