Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to call featured image url at a specific size

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 12 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2154
    Avatar photo[anonymous]

    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
    Avatar photoBob

    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
    Avatar photo[anonymous]

    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.