• Resolved stelaras1

    (@stelaras1)


    Hello,

    first of all let me thank you for this fantastic plugin and amazing work you’ve done!

    I ‘ve slightly changed my wordpress theme template (/theme/sections/content.php file) with a simple php/html code in order to display a “read more” button. This applies as you can understand to all articles.

    When AMP is enabled this is somehow bypass and the whole article is being displayed at once. What/Where file do i need to change to alter AMP’s template for all posts?

    Thanks in advance

    • This topic was modified 7 years, 3 months ago by stelaras1.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Please show an example – do you mean on a single blog post or do you mean the blog posts page? You probably need to edit archive.php or index.php in your amp plugin design template folder if you are asking what I think you are asking for.

    • This reply was modified 7 years, 3 months ago by frenchomatic.
    Thread Starter stelaras1

    (@stelaras1)

    yes,

    i mean in the blog posts page (applies to all articles and posts) and not for just a singly post.

    I assume that index.php is located under /templates/design-manager/design-1/ folder (or whatever design i will choose to be enable) correct?

    what is the difference between archive.php / index.php

    The difference is how you have set things up in terms of what is getting used for the home page and blog posts page, whether you also show archives, etc. In my case I edit both files to remove the link on images but placing a read more link is fairly trivial. This is because for accessibility (WCAG level 2 AA) you shouldn’t have two adjacent links going to the same place (it confuses people with screen readers and my sites need to comply with that rule as it is a legal thing).

    You will also notice there is a place in both those files where you can set the excerpt length from 15 words to whatever you like too. Again I use 35 words.

    Yes in the design folder that you are using.

    * I have added a comment to github – a document showing people a range of popular customisations would be a great thing to have.

    • This reply was modified 7 years, 3 months ago by frenchomatic.
    • This reply was modified 7 years, 3 months ago by frenchomatic.
    Thread Starter stelaras1

    (@stelaras1)

    frenchomatic,

    it makes sense what you’re talking about.
    Thanks for your time and your hints.

    Thanks

    If you don’t get it then let me know and I will rustle up some code but it is always good to try first.

    Thread Starter stelaras1

    (@stelaras1)

    your help is very much appreciated and totally agree..
    i’ll give it a shot first ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘slight change on AMP’s template, add “read more”’ is closed to new replies.