Gantry
Forum Replies Created
-
Forum: Plugins
In reply to: [Gantry 5 Framework] Featured Image implementationWell you can do it either with a particle or a widget but particle is gonna be much easier to create.
This is a sample code :
{% if wordpress.call('is_singular') %} {% set post = wordpress.call('Timber::get_posts')[0] %} {% if post and post.thumbnail.src %} <img src="{{ post.thumbnail.src }}" alt="{{ post.title }}" /> {% endif %} {% endif %}
It’s gonna work only on the single page/post and only for the first found post in the array.
Thanks,
Jakub- This reply was modified 8 years ago by Gantry.
Forum: Plugins
In reply to: [Gantry 5 Framework] Page content particle in two columnsHi,
Which theme are you using?
Thanks,
JakubForum: Plugins
In reply to: [Gantry 5 Framework] Featured Image implementationHi,
First of all I’m very sorry for late reply.
Do you still need assistance with this issue?Thanks,
JakubForum: Plugins
In reply to: [Gantry 5 Framework] Post titles on home page problemHi,
Can you please edit the
g5_hydrogen/views/partials/content.html.twig
and change this :{% if gantry.config.get('content.' ~ scope ~ '.title.link', '0') %} <a href="{{ post.link }}" title="{{ post.title }}">{{ post.title }}</a> {% else %} {{ post.title }} {% endif %}
to :
{% if gantry.config.get('content.' ~ scope ~ '.title.link', '0') %} <a href="{{ post.link }}" title="{{ post.title }}">{{ post.title|raw }}</a> {% else %} {{ post.title|raw }} {% endif %}
Did this resolved your issue?
Thanks,
JakubForum: Plugins
In reply to: [Gantry 5 Framework] WordPress Posts particle missing categoriesHi,
Yes, this is correct. Categories that are empty won’t appear on that list, however after your post I’m considering changing this behavior.
Let’s see if anyone else will find this as an issue.
Thanks,
JakubForum: Plugins
In reply to: [Gantry 5 Framework] Administration TranslationHi,
First of all – THANK YOU very much for your translation ??
I’m not exactly sure what you mean. Can you please explain this more?Thanks,
Jakub- This reply was modified 8 years ago by Gantry.
Forum: Plugins
In reply to: [Gantry 5 Framework] Can “WordPress Posts” skip current post?Hi,
I’m very sorry for late reply. Do you still need support with this topic?
Thanks,
JakubForum: Plugins
In reply to: [Comments - wpDiscuz] Broken StyleAwesome ??
Forum: Plugins
In reply to: [Comments - wpDiscuz] Broken StyleHi,
One of the Gantry devs here. There’s an issue with your plugin and ours caused by the overbuffer. Both plugins are using it but in the wpDiscuz you clean it and discard it’s current content and this is where the issue comes from.
It’s an easy fix ??
In
plugins/wpdiscuz/templates/comment/comment-form.php
on line56
replaceob_clean();
with:
ob_get_clean();
This should fix it ??
Thanks!
JakubForum: Plugins
In reply to: [Gantry 5 Framework] How to translate it?I think that only moderators can modify it.
Forum: Plugins
In reply to: [Gantry 5 Framework] How to translate it?Well it would be fine to use WP.org online tools, but unfortunately we aren’t able to put our themes into the WP.org theme repository as they can’t meet the theme directory requirements. One of the requirements is ie. that theme needs to be standalone and mustn’t require any separate plugins to make it work (Gantry 5 plugin in our case).
Sorry about that.
Forum: Plugins
In reply to: [Gantry 5 Framework] How to translate it?Hi,
Yes, for the front end, you need to translate the .pot file and save it in the same directory with a filename that is only a language country code so pt_BR.po and pt_BR.mo
With which things you exactly need help?
Thanks,
JakubForum: Plugins
In reply to: [Gantry 5 Framework] G-blocks in grids do not seem to be responsiveIt’s all being driven by CSS and media queries. That’s why it’s important to have these breakpoints values set ??
This is piece of code that handles it :
body [class*="size-"] { @include breakpoint(mobile-only) { @include flex-grow(0); @include flex-basis(100%); max-width: 100%; } }
If you want to, you can contact me on Gitter (@newkind) chat and give me your admin access so I could take a look.
Jakub
Forum: Developing with WordPress
In reply to: Auto truncate blog post excerptsGreat ??
Forum: Plugins
In reply to: [Gantry 5 Framework] Offcanvas menu problem after Gantry 5.4.3 update@fx11 please try latest Gantry 5.4.5 and clear cache and recompile CSS too.
Thanks,
Jakub