Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Images in Antimatter theme

Started by Xavier Marichal 8 years ago · 7 replies · 847 views
8 years ago

Hi ! Sorry for the newbie question...

I'm using the Antimatter to setup a small custom site, and it works great! I just one issue with including pictures in the regular text blocks of the main (modular) page. The template comes with a first user setup where there is such a sub-page named callout which uses an image twig.jpg.

But even when I replace that twig.jpgimage by one of mine (overwrite with the same name), it still displays the old image received fro the template.

What am I doing wrong ?

Xavier

8 years ago

As it is a modular page? Did you try clearing the cache?

8 years ago

Yes, I did try that the cache reacts weirdly on some pictures, I even tried with another navigator that had never accessed the page: same result.

8 years ago

If you are using a cache proxy server (Squid) of some sort, disable it for the browser you are testing the site with.

8 years ago

Try adding some random text in the page you want the image to change in, does that work? If not, are you trying sure you're on the right page? If so,
try
on windows:
CTRL + SHIFT + R
on mac:
CMD + SHIFT + R in chrome

If that works it's purely browser cache, if not , reply again and we'll search for more answerds 😛

8 years ago

Changing text was working fine, but not changing the mages. Weird...
It is clearly a cache issue because I just copied everything from website1 into a new directory website2, and then accessing localhost:/website2/ shows all the correct pictures !

But how come cache refreshes, with CMD + shift + R, as well as access from an anonymous session as well as leaving the console open with the disable cache option active does not work? This remains a mystery.

8 years ago

Hmm, and did you try to clear your browser cache already? in chrome .. history .. remove history .. remove cache option.

If the problem is still there, if you're using the admin in your site, you can try to turn on option:
clear image cache by default: yes
found in: yourwebsite.com/admin/config/system

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 97 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 185 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 61 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 255 1 year ago