Hi there! I've created a custom child theme for grav (gantry5 theme) and I am looking for a way to auto-update it from an URL. How can I do this?
I can see this on theme/gantry/theme.yaml:
details:
updates:
link: 'https://domain.com/themes/theme.yaml'
But what should that file contain?
Thank you!
@PhocaCz Hi Jan, some users are encountering fatal errors with PHP 8.1.x (Search in left column for PHP8.1)
I wonder if it is the server implementation (extensions and options)
My host upgraded to 8.1.8 today and I am fortunate to encounter no problems with Gantry 5 and Joomla 4.1.5
I solved the fatal error with downloading latest Twig, customizing some code, e.g.
FROM:
public function getGlobals()
TO:
public function getGlobals() : array
to avoid fatal errors like this: "Compile Error: Declaration of Gantry\Component\Twig\TwigExtension::getGlobals() must be compatible with Twig\Extension\GlobalsInterface::getGlobals(): array". I can work in administration but then I get fatal errors on frontend like this: "Unexpected token "name" of value "if" ("end of statement block" expected).", etc.
Even this can be relatively simple solved:
FROM:
{%- set offcanvas = null -%}
{%- for segment in segments if segment.type == 'offcanvas' %}
{%- set offcanvas = segment -%}
{% endfor -%}
TO:
{%- set offcanvas = null -%}
{%- for segment in segments %}
{% if segment.type == 'offcanvas' %}
{%- set offcanvas = segment -%}
{% endif %}
{% endfor -%}
So, with some simple changes, it works for me. Then unimportant warnings can be changed too:
Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 133
Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 98
Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 79
Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 143
hi everyone, i'm having issues where my gantry5 cache gets corrupted, and the home page turns into a white screen, e.g:
Error: Creating directory failed for /home/user/public_html/cache/gantry5/g5_hydrogen/compiled/config/27db06d628b0cec24a0622f7d2df9676.php:
Creating directory failed for /home/user/public_html/cache/gantry5/g5_hydrogen/compiled/config/5fae0ac87da073a419170e2d76896fc0.php
I log in and clear the cache and it fixes it right away...
These are the standard classes
https://docs.gantry.org/gantry5/tutorials/utility-classes
You put them in the back end... not code... - extensions - templates - layout
Hello, im trying to stick the footer at the bottom, im using Helium theme in Joomla, so i added this code to custom.scss:
.bottom {
position: absolute;
width: 100%;
bottom: 0px;
}
then applied the class bottom to the footer section but then the footer goes over the content, if i comment bottom: 0px; i correctly see all the content but the footer isn't displayed properly all or just disappear in pages where there is much content.