Alexist Ong
Forum Replies Created
-
Hi,
I think it’s necessary that sometimes we need to have the same
font-family
, but just different font files for different font styles.Understood we could have separated the normal and italic font styles to two distinct fonts via Custom Fonts plugin, and subsequently tag each font to different set of selectors. For example normal style for
<body/>
and italic for<em/>
respectively. But this might not work for elements with CSS rule offont-style: italic;
, especially when we use third party widgets which we have no control over their implementation at all.Technically, you are right, it’s not an issue. But in reality, this might not be an ideal solution. May I propose a solution by adding the following line of code to function
bcf_prepare_lfont_face_css
under filehelper-functions.php
$font_face .= ! empty( $variation_data['font_style'] ) ? "\tfont-style: " . $variation_data['font_style'] . ';' . PHP_EOL : '';
The chunk of code should look similar to
$src = array(); $font_face = '@font-face {' . PHP_EOL; $font_face .= "\tfont-family: '" . $font_family . "';" . PHP_EOL; $font_face .= ! empty( $variation_data['font_style'] ) ? "\tfont-style: " . $variation_data['font_style'] . ';' . PHP_EOL : ''; $font_face .= ! empty( $variation_data['font_weight'] ) ? "\tfont-weight: " . $variation_data['font_weight'] . ';' . PHP_EOL : ''; $font_face .= ! empty( $font_data['font_display'] ) ? "\tfont-display: " . $font_data['font_display'] . ';' . PHP_EOL : ''; $font_face .= ! empty( $font_data['font_fallback'] ) ? "\tfont-fallback: " . $font_data['font_fallback'] . ';' . PHP_EOL : '';
Please consider this code change and hope it helps.
Forum: Plugins
In reply to: [WP Tripadvisor Review Widgets] Unable to Connect to TripadvisorHi @adam140299 ,
Thanks for the updates. I don’t see any updates available yet on WordPress so I can’t really test it out. A quick check on my current version of 8.2.1 still yield the same issue.
I’ll wait for the new version rollout before I can update you again if the problem is solved. Again, thanks for your help.
Alexist.
@dsl225 , glad to hear that it still works!
Hi @midii ,
Sure. If you are using your own child theme, then you can add the code to theme file of functions.php. Otherwise I would suggest you to add the filter via plugins such as Code Snippet or Add Shortcodes Actions And Filters. Good luck.
Regards.
Hi @midii ,
For now I am still using the following filter as workaround, hope it works for you too.
add_filter('tpg_get_the_excerpt', function($excerpt, $post_id, $data, $defaultExcerpt) { return stripslashes( wp_filter_nohtml_kses( $excerpt ) ); }, 10, 4);
Regards.
Hi,
Noted. Thanks for the update.
Regards.
Forum: Plugins
In reply to: [W3 Total Cache] Query String of ?repeat=w3tc On URLForum: Plugins
In reply to: [W3 Total Cache] Query String of ?repeat=w3tc On URLHi @vmarko,
Yep, I tried to add
:
to the regex and it works. You might need to delete theblogs.php
file though. The regex pattern I used is/[^a-zA-Z0-9\+\.%~!:()\/\-\_]/
.Hope this could be addressed in the next release.
Regards.
Forum: Plugins
In reply to: [W3 Total Cache] download.gz Downloads when viewing the site (sometimes)For my case, I notice the same thing happens only to multi-site website. The same configuration that I exported to another single-site hosted on the same server has no such issue.
My current workaround is to disable the Page Cache, or select Disc: Basic as Page Cache Method. Hope this helps.
Hi,
I have updated all my plugins and re-activated the option WP Dashboard >> Rank Math >> General Settings >> Other https://i.mythemeshop.com/oZ8z2n. I could no longer see the error message.
Thank you for the fixes.
Regards.
Hi there,
Thanks for the update. I disabled the option Usage Tracking as suggested and it works. I’m now able to update the page without hitting the error.
Hope the upcoming updates would be released soon to fix the issue. Thank you so much and have a nice day.
Regards.
Hi,
This issue has been resolved and the fix would be available in the next version. Thanks again for the help.
Regards.
Hi,
Similar to topic Chinese Excerpt Limit By Character, the hook was never triggered.
I have sent support e-mail to [email protected], hope to hear from you guys soon.
Regards.
Yea sure. Thank you.
Hi,
I added the filter using Snippet but it doesn’t work. I subsequently tried to locate the hook within the plugin but found none. I’m using version 2.2.72.
Regards.