Yann
Forum Replies Created
-
Hi Vicent,
Thanks for the kind words. Unfortunately the Twenty Twenty-One theme doesn’t support the display of Gravatar pictures. Due to the way this theme has been coded, it’s unfortunately not possible for us to add an option to display Gravatar/Twitter to our Twentig plugin.
Have a great day,
YannHi,
Thank you for your feedback. You’re correct, there does appear to be a layout issue with the “Stack on tablet” option enabled on the Media & Text block. The width of the block is indeed exceeding its parent container. We’ll be addressing this in our next release. In the meantime, you can use the following CSS code as a temporary workaround. Please add this code to the “Additional CSS” panel in the Customizer:
@media (max-width: 1023px) { .wp-block-media-text.tw-stack-md.alignwide { width: var(--responsive--aligndefault-width); max-width: 100%; } }Please let me know if this resolves your issue, or if you’re referring to another problem.
I’ve just visited your website and it seems like you’ve successfully managed to add the blog title on the Blog page.
The issue is that
fill: currentColorisn’t a valid attribute for pseudo-elements like::before. Instead, you can add the color directly inside the SVG element.Here’s how you can do that for black as the normal state color and white for the hover state:
- Insert
fill="#000"into your SVG:
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path fill="#000" d="M220-180h150v-250h220v250h150v-390L480-765 220-570v390Zm-60 60v-480l320-240 320 240v480H530v-250H430v250H160Zm320-353Z"/></svg>- Convert this SVG to a Data URI using https://yoksel.github.io/url-encoder/ and insert the encoded SVG into your CSS:
.button-icon a.wp-block-button__link::before { content: ""; display: inline-block; height: 24px; width: 24px; background-image: url("data:image/svg+xml, {your encoded SVG here}"); background-repeat: no-repeat; background-position: center; background-size: contain; margin-right: 8px; vertical-align: middle; }- Next, prepare the SVG for the hover state by changing the fill color to
#fff:
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path fill="#fff" d="M220-180h150v-250h220v250h150v-390L480-765 220-570v390Zm-60 60v-480l320-240 320 240v480H530v-250H430v250H160Zm320-353Z"/></svg>- Again, convert this SVG to a Data URI and insert the encoded SVG into your CSS:
.button-icon a.wp-block-button__link:hover::before { background-image: url("data:image/svg+xml, {your encoded SVG here}"); }Hope that helps 🙂
Hello,
In order to add an icon to a button using a CSS class, you can follow these steps:
- Prepare your SVG icon and convert it to Data URI using a converter like https://yoksel.github.io/url-encoder/.
- Inside your WordPress Dashboard, navigate to Appearance > Customize > Additional CSS.
- Paste the following code into the Additional CSS box:
.button-icon a.wp-block-button__link::before { content: ""; display: inline-block; height: 24px; width: 24px; background-image: url("data:image/svg+xml, {your encoded SVG here}"); background-repeat: no-repeat; background-position: center; background-size: contain; margin-right: 8px; vertical-align: middle; }Replace {your encoded SVG here} with the Data URI you got from the URL Encoder.
- Adjust the height, width, and margin properties to suit your needs.
- Now, apply the “button-icon” class to each button block you want the icon to appear in. You can do this by selecting the button block, then in the right sidebar under “Advanced”, add “button-icon” to the “Additional CSS Class(es)” field.
Hope that helps,
YannThanks for the heads-up, glad it works.
Would you mind leaving us a quick review on our plugin page? This allows us to continue providing great features and helps other users to find us. 🙂
Have a nice day,
YannHi,
The issue seems to be that you have enabled the “Stretch link” option on the Group block that wraps the “Solo Works” heading and the Query Loop block. To resolve this, you need to select this Group and disable the “Stretch link” option.
If your intention is to stretch the link for each item in your portfolio, you’ll need to insert a Group block around the Columns block that you have already incorporated inside the Query Loop. Once this is done, enable the “Stretch link” option on this newly inserted Group block.
Please let me know if this works,
YannHello,
We’ve never encountered this issue before, so I’m uncertain about its cause. The file that seems to be causing the problem, ‘wptt-webfont-loader.php,’ is a PHP class created by the WordPress Themes Team (https://github.com/WPTT/webfont-loader). This class allows to download Google Fonts and host them locally on a WordPress site.
To rule out a plugin conflict, could you please try to deactivate all other plugins except for Twentig? If the error disappears, start reactivating your plugins one by one until you pinpoint the one causing the issue.
If that doesn’t resolve the issue, another step you could try is to delete all the font files located in your WordPress installation under the ‘wp-content/fonts’ folder. This action will force the system to regenerate the font files.
Could you please tell me which fonts you were trying to set so I can test if the issue is not with them?
Thank you,
YannHi,
For the Twenty Twenty-One theme, add the following CSS code in the Customizer > Additional CSS panel to reduce the header’s spacing on mobile devices. As I’m not sure which padding you want to reduce, I’ve added comments to the code to indicate which part of the header is affected by each CSS rule. Keep only the rules you need. You may also adjust the values to your liking.
@media only screen and (max-width: 651px) { /* reduce spacing above and below logo */ #masthead .site-logo { margin: 0; padding-bottom: 20px; } /* reduce spacing between black border and menu */ #masthead { row-gap: 10px;} /* reduce spacing below menu */ #masthead { padding-bottom: 20px; } }Hope that helps,
YannThank you for the heads up. Since this issue is not related to Twentig, I’m closing this support thread. I hope you find a solution.
Have a great day,
YannThe query loop appears to be set up correctly, so it is unlikely that the issue originates from there.
Have you tried temporarily deactivating all of your plugins to rule out any plugin conflicts?
Could you please paste the code of your custom template part “archive-and-search-body-layout”?
Hi there,
To rule out a conflict with the Twentig plugin, please try to temporarily deactivate it. If the problem persists, then the issue is not related to Twentig.
The best way to rule out any plugin conflict is to temporarily deactivate all of your plugins. If this solves the issue, reactivate your plugins one by one until you find which plugin is causing the problem.
If deactivating the plugins doesn’t resolve the issue, it’s possible that the Archive template is the source of the problem. Please go to Appearance > Editor > Templates > Archive and copy and paste the code of the template here so I can take a look.
Thanks,
YannThank you for the heads-up. I’m glad you found a solution.
Have a great day,
YannHi there,
Unfortunately, we aren’t familiar with the Polylang plugin, so I can’t say for certain if translating footer widgets is possible in the free version. Just to clarify, the footer widgets are not a feature added by Twentig, but are part of the Twenty Twenty theme itself. To get more accurate information and assistance, I suggest heading over to the Polylang support forum.
Best of luck with your site translation!
Yann - Insert