deewinc
Forum Replies Created
-
Hello,
Unfortunately, there’s no lazy loading attribute on the images.
Can you advise me on how to use the hook?
@kbat82 thanks for the swift response.
My theme comes with a default lazy load tool that works magic. I have disabled the “cropping” feature but still, lazy loading isn’t taking effect.
It works when I use cache plugins but the problem is, the images take slightly longer to load.
Any workaround like a functions hook?
Forum: Plugins
In reply to: [Accordion] accordion doesn’t work@pickplugins ~ I disabled cache plugins and all other plugins. It just won’t work.
@a223123131 ~ thanks for highlighting that
Forum: Developing with WordPress
In reply to: How to add a special link on top of all post titlesThis is the closest that I have come. However, it displays the text in the same line with the post title. Is there a way to modify it to sit above the post title?
add_filter( 'the_title', 'wpb_sponsored' ); function wpb_sponsored( $title ) { global $post; $sponsored_text = '<span class="sponsored_text"> Sponsored Post</span> '; $sponsored = get_post_meta($post->ID, 'sponsored', true); if( $sponsored == 'true' && in_the_loop() ){ return $title.$sponsored_text; } return $title; }
Originally borrowed from https://www.wpbeginner.com/wp-tutorials/how-to-add-sponsored-post-prefix-to-post-title-in-wordpress/
Forum: Developing with WordPress
In reply to: How to add a special link on top of all post titles@bcworkz ~ thanks for your response.
Based on the screenshot that I have shared, where or how should I add it?
Forum: Developing with WordPress
In reply to: How to remove the category name on the homepage@bcworkz ~ let me apply that thanks
Forum: Developing with WordPress
In reply to: How to remove the category name on the homepage@sterndata ~ another thing. When you click on that post shared in the image on my post. How can I hide all other category titles from showing but keep the specific “Affiliate Disclosure” title visible on the posts?
Forum: Developing with WordPress
In reply to: How to remove the category name on the homepage@sterndata ~ sorry about that. I was playing around with various functions to see what works and what doesn’t. It might have been absent at the time of your viewing.
I have managed to fork something that works after working with various ideas found in the WordPress forums.
This one works whereby “137” is the category ID
.entry-category-item-137 { display: none; }
I have included part for your solution and the following works too
.home .entry-category-item-137 { display: none; }
How can I include other areas of the website such as search results and archives?
Forum: Developing with WordPress
In reply to: How to remove the category name on the homepage@sterndata ~ check the attached image. I will remove it once I get a solution (Please don’t type the link in the forum)
@t-p ~ thanks going through it
- This reply was modified 3 years, 10 months ago by deewinc.
Forum: Plugins
In reply to: [LiteSpeed Cache] Self-Hosted Google Fonts doesn’t work with Litespeed plugin@webhostercloud true. Litespeed Cache sends so many requests for Google fonts and the render blocking of the requests is so enormous.
I can see debate about adding preload and caching local fonts dating back from 2018. I wonder what’s taking them long to implement the feature.
Forum: Plugins
In reply to: [Pre* Party Resource Hints] Preload images, CSS, and JavaScript helpActually, it’s telling me that it’s a must to select “AS” attribute. The MIME type leaving it blank works but not without selecting AS attribute.
Forum: Plugins
In reply to: [Accordion] accordion doesn’t work@stavroch Yes I am. Read @pickplugins last response to you then connect with my reply that follows it.
Forum: Plugins
In reply to: [Accordion] accordion doesn’t workCan your share the script that needs to be loaded in the header please? I’m facing the same issue too.
Forum: Plugins
In reply to: [Pre* Party Resource Hints] Preload images, CSS, and JavaScript helpHello
That surely works.
The only challenge is in determining the “AS” attribute as the plugin doesn’t allow you to leave it blank.
Despite preload working for fonts, the following issues show up
(link for resource) was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
Is that an error or it’s okay? I notice a slight delay in loading of the fonts styling due to the above reason.
Forum: Plugins
In reply to: [LiteSpeed Cache] Self-Hosted Google Fonts doesn’t work with Litespeed pluginI have decided to add preloading for the fonts, which has greatly reduced the call up time and render blocking to 50ms<
I think I can work with it as it is.