Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:00
    marktaylor46 opened #2843
  • Jul 25 13:55
    01Kuzma commented #2827
  • Jul 25 13:54
    01Kuzma closed #2827
  • Jul 25 13:54
    01Kuzma commented #2827
  • Jul 25 13:37
    beamaria commented #2830
  • Jul 25 13:34
    mahagr milestoned #2830
  • Jul 25 13:34
    mahagr labeled #2830
  • Jul 25 13:33
    mahagr reopened #2830
  • Jul 25 13:33
    mahagr commented #2830
  • Jul 25 13:29
    beamaria commented #2830
  • Jul 25 13:29
    mahagr commented #2827
  • Jul 25 13:26
    mahagr closed #2830
  • Jul 25 13:26
    mahagr commented #2830
  • Jul 25 13:25
    mahagr closed #2832
  • Jul 25 13:16
    beamaria commented #2832
  • Jul 25 13:15
    beamaria commented #2830
  • Jul 25 12:29
    01Kuzma reopened #2827
  • Jul 25 12:29
    01Kuzma commented #2827
  • Jul 25 12:28
    01Kuzma commented #2827
  • Jul 25 12:24
    01Kuzma closed #2827
vincent
@newjie
Hi everyone. In wordpress, how do I know which outline a page is using?
Dolcevia.com
@Dolcevia_twitter
I just uploaded an installed gantry Hydrogen template on a new website. All well on frontend, admin of in this case Joomla is perfectly fine, it allowed me to configure the website like usual, so I guess it is installed. However the template doesnt show up in the domain files. I cant therefore make any overrides. It's quite weird. I tried to discover anything not installed properly, but it came up with nothing. So where is the template hiding??
James
@jmshey90
Is there any reason why Gantry strips out HTML closing tags from inside particles? I have to manually escape any closing tag such as <\/a>. However, if I'm passing anything from a particle array, there is no way of adding the escape so it never actually renders. This is inside the javascript area. I'm trying to use particles as an adminsitrative inteface for a JSON effectively
David Wickstead
@Wicko-Design
@Dolcevia_twitter go the Extension > Templates then press the G5_Helium option on the right in the template column. Then you should option the Theme fodler where you can create template pverrides if needed.
David Wickstead
@Wicko-Design
@newjie In WordPress open the template layout and you want to use for a specific page. You can then press the assign option and press the toggle switches to choose which menu or pages that layout is assigned to. Assigning templates on WordPress can get a bit messy which you are in include other taxonomies, specially if you are using WooCommerce for instance. In that case I have found it easier to use the assignment.php within each layout option within your theme folder > Custom > Config > Your Layout Name assignments.yaml Simply check the ID of the page you want to layout to be live on and then add that ID: true after page:
@marvays you can add this to your custom.scss file.
Matias Griese
@mahagr
@jmshey90 it shouldn't do that. Maybe there's some postprocessing in your site?
James
@jmshey90

@mahagr I get it everytime. I just had to add:
replace({'</':'<\\/'})

But seems a bit clunky

eaciudad
@eaciudad
Just upgraded to PHP 7.4
I got this error in Joomla with PHP 7.4 "Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/customer/www/__.com/public_html/plugins/system/gantry/functions.php on line 41" and here is the function: function gantry_parsePathComponents($path, $endSlash = true, $base = false)
{
for ($path = trim($path), $slash = strstr(PHP_OS, 'WIN') ? '\/' : '/', $retArray = array(), $str = $temp = "", $x = 0; $char = @$path{$x}; $x++) {
if (!strstr($slash, $char)) $temp .= $char; elseif ($temp) {
$str .= $temp;
$retArray[$temp] = $str . ($endSlash ? $slash{0} : '');
$str .= $slash{0};
$temp = "";
}
}
$base && $temp and $retArray[$temp] = $str . $temp;
return $retArray;
} --end of function
Matias Griese
@mahagr
@eaciudad not gantry 5
eaciudad
@eaciudad
yes, gantry 5 is installed but the message says gantry
Matias Griese
@mahagr
then uninstall gantry 4
:)
it's odd though as even gantry 4 should have a fix for that one
check that joomla hasn't disabled the updates
for gantry
reyesguadalupe
@reyesguadalupe
Como puedo poner una imagen de fondo a helium con joomla?
David Wickstead
@Wicko-Design
@reyesguadalupe where do you want to add a background image? Depending on the template you are using you might be able to add to certain sections using the template styling. Alternatively you can add background images to any section using your custom.scss.
eaciudad
@eaciudad
I do not gantry 4 installed. I have gantry and gantry 5. Will check Joomla to see if the update to gantry were disable.
eaciudad
@eaciudad
Joomla updates for gantry is not disable. Mysteriously, the error did not happen again on either website.
Matias Griese
@mahagr
gantry = gantry 4
it should have update for that, though
but if you can uninstall it (eg. you're not using gantry 4 template), please do so
eaciudad
@eaciudad
not using gantry 4 templates. Will backup and uninstall.
dmleeman
@dmleeman

TIP: I found out yesterday that html5 has a built in attribute for lazy loading images

adding the attribute loading="lazy" to img tags uses the browser facility to lazy load without scripts. The coverage is currently around 74% browsers but of course there is no error on unsupported and it is one less script to run.

I've tested it on an ecommerce site in Chrome and it works fine. So, you could add this attribute to an override in your CMS (I use Joomla)

source: https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading

can I use: https://caniuse.com/?search=lazy

David Wickstead
@Wicko-Design
@dmleeman Thats great. You learn something every day. Does it use the size first to allocate the space as that is where often Lazy Loading fails. Need to make sure images have sizes other that percentages or auto.
Have an issue and not sure if WordPress or Theme retlated. P class is being added to pages and elements withing the content area are automatically. This breaks some layout options. Used the script to remove all empty P classes but where it add the P class to DIVs it a problem.
dmleeman
@dmleeman
@Wicko-Design re: lazyloading: Good question! I've only tried it on one ecommerce site (in fact it is the HAC copy to which you have access!)
WP: I don't use it so cannot help with that issue. If it was Joomla I'd say it was in the component that populated the content area.
David Wickstead
@Wicko-Design
@dmleeman if it was Joomla I would be much more comfortable too. Definitely Lazy loading does help with page speed, specially on ecommerce sites with lots of images. I have used CloudFlare on getgofone.co.uk site.
dmleeman
@dmleeman
@Wicko-Design Agreed, I've just started using BunnyCDN but do use Cloudflare on non ecommerce. I find Cloudflare can cache 'too much' so you have to be extra vigilant with it's Page Rules.
David Wickstead
@Wicko-Design
@dmleeman yeah know what you mean. We are currently using the Pro version of Cloudflare. Bit sticky with some of the rules etc but managed to get it working ok after a time. Found their documentation pretty useless. The way it optimised the images is great but had to turn off all other optimisation plugins. Just make sure it doesn't cache admin, cart, checkout and account pages were the main rules.
dmleeman
@dmleeman
@Wicko-Design Exactly that! The Cloudflare service is great, but the docs require investigative work rather than flowing as a means of achieving what you need from the caching. The caching did cause me some real bother on a cart/checkout site that cost me hours/days of consternation!
Matt Fletcher
@mattfletcher
Hello, newbie question, I'm trying to remove the overlay gradient from the header carousel on the homepage (Helium theme). "Header Styles" has a "background overlay" setting, which I have changed to disabled, but it is still showing. Probably missing something obvious.
David Wickstead
@Wicko-Design
@mattfletcher open your home page template and select the styles tab. You will see a sction for the header styles. Here you will see the option to disable the overlay background.
beamaria
@beamaria

@mattfletcher: use this code in your custom.scss file

.g-owlcarousel.has-color-overlay .owl-stage > .owl-item:nth-child(2n+1) .g-owlcarousel-item-img::after { content: none; }
Remember to recompile CSS from base outline too.

To create a custom.scss file refer to Gantry documentation http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet/

Rise2Prosperity.com
@Rise2Prosper_twitter
Greetings, New to community. I downloaded Gantry 5 Helium and I don't have the sample content particle. Input please. Thanks
Joshua Clinard
@echopulse_twitter
can someone tell me how to insert a meta tag into the header?
natecovington
@natecovington
Screen Shot 2021-07-23 at 8.21.15 AM.png
Screen Shot 2021-07-23 at 7.58.48 AM.png
I'm having trouble with Hydrogen/Gantry5 to work with PHP 7.4, attached is a screenshot of the live site on PHP 7.3, no errors in the console. then i switch to PHP 7.4 and my layout goes haywire. i'm not seeing any errors in cPanel logs... and I turned on Display Errors = Maximum in Joomla Global Configuration, I'm not getting any hints. Where else should I check?
XaRz
@XaRz
Hello. I've just updated a site to 7.4 and it trhows a gantry 5 error. Can someone help me to investigate if there is a gantry 5 error? I'm using latest gantry 5.4.37 and the site is http://cangenis.cat
(7.4 means php 7.4, and it's a joomla gantry package)
XaRz
@XaRz
Setting display maximum errors, shows:
Captura de Pantalla 2021-07-23 a les 14.49.07.png
Matias Griese
@mahagr
@XaRz can you report this as a bug? use the screenshot from the error
XaRz
@XaRz
ok.
XaRz
@XaRz
أيمن رضوان
@aaaakel123_twitter
I want to ask about some important features if contained in Gantry or not: SEO-friendly, Translation Ready, multiple Plugins integration, Browser Compatibility, and Secure.
David Wickstead
@Wicko-Design
@aaaakel123_twitter Security can be improved by following protocol. WordPress or Joomla both have options to increase security. I alot also can be done on your server and using htaccess settings. I would say Joomla is probably more secure out of the box than WrodPress but don't let that put you off. On my latest project I have had vigeroius Penetration testing done on the site and with a few minor amendments passed with flying colours. But a lot is also down to the plugins and extensions you add. Make sure they are from well supported and reputable developers.