By Ulysses Gonzalez on Tuesday, 19 February 2019
Posted in General Issues
Likes 0
Views 602
Votes 0
Just curious, is it possible to adjust parameters for the AMP page?

For instance, removing the author or category?

It seems that this is the only place the author shows up on the site and was hoping to remove or hide it, if possible?
Hi there,

You can apply some customisation here /components/com_easyblog/themes/wireframe/blogs/entry/amp.php and do template override for it at this path template/your_curent_template/html/com_easyblog/blogs/entry/amp.php by removing codes below.

[gist type="php"]
<div class="blog-meta">
<div class="blog-meta__author">
<?php if ($post->hasAuthorAlias() || !EB::isBlogger($post->getAuthor()->id)) { ?>
<?php echo JText::_('COM_EASYBLOG_AMP_BY'); ?> <?php echo $post->getAuthorName();?>
<?php } else { ?>
<?php echo JText::_('COM_EASYBLOG_AMP_BY'); ?> <a href="<?php echo $post->getAuthorPermalink(); ?>"><?php echo $post->getAuthorName();?></a>
<?php } ?>
<?php echo JText::_('COM_EASYBLOG_AMP_ON'); ?> <?php echo $post->getDisplayDate('created')->format(JText::_('DATE_FORMAT_LC1')); ?>
</div>

<?php if ($post->category) { ?>
<div class="blog-meta__cat">
<?php echo JText::_('COM_EASYBLOG_AMP_CATEGORY'); ?> <a href="<?php echo $post->category->getPermalink();?>"><?php echo $post->category->getTitle();?></a>
</div>
<?php } ?>
</div>
[/gist]
·
Tuesday, 19 February 2019 13:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Great Abdul that worked like a charm..
·
Tuesday, 19 February 2019 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Tuesday, 19 February 2019 17:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post