• Hi have just set up AMP and are current up to today’s (1/7/17) AMP plugin update. Two questions about the home page:

    1) What is the proper code to modify the size of thumbnails displayed on home page? It looks like it is set at 100×75, but we use only square images so need to adjust the ratio by changing dimensions.

    2) Is there a way to limit home page to only display posts from one category ID?

    Site in question is https://tasteandsee.com/?amp

    thank you!
    Bryan

    • This topic was modified 8 years, 2 months ago by tasteandsee.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hi @tasteandsee,

    Thank you so much for your valuable feedback.
    We are working on these features and we will add them soon.

    Regards,
    Team AMP

    Thread Starter tasteandsee

    (@tasteandsee)

    Hi in testing, it works now with the following, but I don’t believe !important is allowed in AMP code so I don’t think I can leave it that way right?

    The images look correct with !important, but revert to skewed ratio when I remove the !important. So can you help me see what is over-riding this in the home page code?

    ========
    .home-post-image amp-img{
    Width: 100px!important;
    Height: 100px!important;
    }
    ========

    Many thanks!
    Bryan

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @tasteandsee,

    Yes !important is not allowed in AMP, you can use it but it will give you the validation errors.

    We are working on it and We will show you how to do it.

    Regards,
    Team AMP

    Thread Starter tasteandsee

    (@tasteandsee)

    Hi could you let me know if there is any new information on how I could do this?
    Thanks… Bryan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AMP Home Page Configs: Image Size, & Category IDs’ is closed to new replies.