Sign in

How to call featured image url at a specific size

  • This topic has 2 replies, 2 voices, and was last updated 2 weeks ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2154
    edk

    I’m trying to use a specific size of the feature image in the top of the page, rather than the original one. I found this in the dev section in support,

    {{urlDIMENSION_NAME}} – URL of the resized version (specified by DIMENSION_NAME variable e.g. urlLarge)

    but I can’t get it to work. I’ve tried urlLarge, urllg and url-lg.

    Anyone got idea what I’m doing wrong?

    Thanks,
    Ed

     

    #2158
    BobBob
    Support

    Hi,

    Firstly, look into the confing.json and check the available thumbnails sizes in the “files” section; then use it as follow: {{urlXs}} where the dimension variable starts with a capital letter.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #2170
    edk

    Thanks for the quick reply.

    Works!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to call featured image url at a specific size’ is closed to new replies.