pakpenyo
Forum Replies Created
-
Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] Multiple BreadcrumbI think of breadcrumbs as doors. Users and search engines can choose which door they want to use.
Our job is simply to create the door and tell them there are multiple doors.
I may be misunderstanding, but Google allows it.
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed-dummyI have a fucntion to clean output
public function cleanStylesheetLinks( $html ) {
return ( new DOM( $html ) )->each(
static function ( $link ) {
$link->removeAttribute( 'type' );
$link->removeAttribute( 'id' );
if ( ( $media = $link->getAttribute( 'media' ) ) && 'all' !== $media ) {
return;
}
$link->removeAttribute( 'media' );
}
)->html();
}Finally, the dummy CSS disappears if I disable the function.
Is there a solution for this? I like clean source code. Is the id attribute really necessary?Thanks for finding the problem.
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed-dummyFull custom theme. CSS/JS only works when needed. It’s already using compressed inline js/css for priority, and very light compressed css/js at wp_footer. I’m not using jQuery, fully disable for non admin user.
Lighthouse score is good, but thats dummy css blocking render.Any code to unload/dequeue dummy css for already optimized custom theme?
Forum: Plugins
In reply to: [WP Popular Posts] Exclude post by authorI misunderstood. I thought author was a taxonomy when looking at the ‘wp_term_taxonomy’ table. For now, I’ve created a filter to exclude posts from an author.
add_filter(
'wp_script_attributes',
function ( $atts ) {
global $post;
if (
( is_single() && $post->post_author == 54 ) // author_ID 54
&& ( str_contains( $atts['src'], 'wpp.js' ) || str_contains( $atts['src'], 'wpp.min.js' ) ) ) {
$atts['src'] = '';
}
return $atts;
},
10,
1
);Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Exclude authorSolved
'exclude' => array( '380' ),term_taxonomy_idForum: Plugins
In reply to: [WPS Hide Login] /wp-admin after logging in – displays a 404 error pageLog out using the admin bar link (as admin) then redirect to 404. It’s working fine without plugin.
Offline local and cPanel Hosting.Forum: Plugins
In reply to: [WP Popular Posts] Custom Thumbnail not workingI’m now using native lazyload. All working fine. Thanks a lot for plugins and support.
Forum: Plugins
In reply to: [WP Popular Posts] Custom Thumbnail not workingStill, that variable is not defined anywhere within your function so unless it’s a global variable then that bit of your code isn’t really doing anything.
Line
$img_id = 28105;it’s the default image ID.Most likely the reason is that the generated HTML code is being encapsulated within the Shadow DOM when the AJAX feature is enabled (something I plan on changing soon as that wasn’t intended), hence vanilla-lazyload’s script might not be able to reach it (but this is mere speculation, haven’t really tested anything as I just woke up haha).
Take your time.
6.1.4 worked fine after replacing line 166 insrc/Output.phpwhich caused a large error_log with a fix from 6.2.0.Forum: Plugins
In reply to: [WP Popular Posts] Custom Thumbnail not workingThanks for the reply.
The
$img_idis default image for articles without image. I still use 3rd party lazy library for more control. I have several iframe need lazyload (Firefox loading lazy only work with images).What I’ve found so far is to disable the Load popular posts list via AJAX, and all the images appear. There is something wrong/conflict with
<div class="wpp-shortcode wpp-ajax">. I’m using Litespeed Cache and always enable that option.Thanks a lot. It’s working great.
Forum: Plugins
In reply to: [Posts 2 Posts] PHP8.0 Fatal errorStill have a warning
Deprecated: Required parameter $nonce follows optional parameter $formdata in /wp-content/plugins/posts-to-posts/vendor/scribu/scb-framework/Forms.php on line 65 Deprecated: Required parameter $args follows optional parameter $file in /wp-content/plugins/posts-to-posts/vendor/scribu/scb-framework/Cron.php on line 24❯ php -v PHP 8.0.19 (cli) (built: May 12 2022 02:41:55) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.19, Copyright (c) Zend TechnologiesThanks @stiofansisland for the update.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Without jQueryThanks.
Forum: Plugins
In reply to: [a3 Lazy Load] Deregister cssI have some question.
Trying deregister/dequeue a3_lazy_load.min.css but can’t get work.
Forum: Plugins
In reply to: [mobble] PHP71 CompatibilityNow i’m using with :
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_edge, $mobble_detect; $classes = array();I’m using mobble with html class, not body class.
Forum: Plugins
In reply to: [mobble] PHP71 CompatibilityFixed. Add
$classes = array();at the line:
// bonus if ( ! is_handheld() ) { $classes = array(); $classes[] = 'desktop'; }