Hope you can help me out with something!
The only thing that I need with the plugin is to list pdf files in the frontend so that the users can view them in their browser, like in the demo here: https://nsvwaterplan.org/documents-library/?dir=2881
Can I do that with the free version? If so, how do I go about it?
Because the website contains privacy sensitive information I can’t share the link here, but I can send it directly to you if necessary. Thank you!
Best regards,
Thomas
frontend.min.js?ver=3.25.0:2 Uncaught TypeError: Cannot read properties of undefined (reading 'handlers')
at 820 (frontend.min.js?ver=3.25.0:2:4411)
at webpack_require (webpack-pro.runtime.min.js?ver=3.25.0:2:150)
at 4906 (frontend.min.js?ver=3.25.0:2:4068)
at webpack_require (webpack-pro.runtime.min.js?ver=3.25.0:2:150)
at 3000 (frontend.min.js?ver=3.25.0:2:139)
at webpack_require (webpack-pro.runtime.min.js?ver=3.25.0:2:150)
at frontend.min.js?ver=3.25.0:2:24859
at webpackJsonpCallback (webpack-pro.runtime.min.js?ver=3.25.0:2:5904)
at frontend.min.js?ver=3.25.0:2:69
820 @ frontend.min.js?ver=3.25.0:2
webpack_require @ webpack-pro.runtime.min.js?ver=3.25.0:2
4906 @ frontend.min.js?ver=3.25.0:2
webpack_require @ webpack-pro.runtime.min.js?ver=3.25.0:2
3000 @ frontend.min.js?ver=3.25.0:2
webpack_require @ webpack-pro.runtime.min.js?ver=3.25.0:2
(anonymous) @ frontend.min.js?ver=3.25.0:2
webpackJsonpCallback @ webpack-pro.runtime.min.js?ver=3.25.0:2
(anonymous) @ frontend.min.js?ver=3.25.0:2
jquery.min.js?ver=3.7.1:2 Uncaught TypeError: Cannot read properties of undefined (reading 'tools')
at Frontend.initOnReadyComponents (frontend.min.js?ver=3.25.1:2:7487)
at Frontend.init (frontend.min.js?ver=3.25.1:2:9391)
at HTMLDocument. (frontend.min.js?ver=3.25.1:2:9617)
at e (jquery.min.js?ver=3.7.1:2:27028)
at t (jquery.min.js?ver=3.7.1:2:27330)
initOnReadyComponents @ frontend.min.js?ver=3.25.1:2
init @ frontend.min.js?ver=3.25.1:2
(anonymous) @ frontend.min.js?ver=3.25.1:2
e @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
ce.readyException @ jquery.min.js?ver=3.7.1:2
(anonymous) @ jquery.min.js?ver=3.7.1:2
e @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
(anonymous) @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
fire @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
(anonymous) @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
fire @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
ready @ jquery.min.js?ver=3.7.1:2
P @ jquery.min.js?ver=3.7.1:2
]]>I would like to have a shortcode or widget to display some data for each article on the frontend, with the data being public, meaning visible to visitors as well. How could this be implemented?
]]>In function custom_breadcrumbs()
the textdomain 'hotel-inn'
is used instead of 'lawyerfirm'
.
In function custom_page_callback()
settings a $_POST
variable messina_blog_free_back_top_top_enable_form
is checked which is defined nowhere and also a PHP Warning: Undefined variable $current_target warning in functions.php on line 526
is caused if the “Layer Firm Free” settings page is opened and also invalid inline script code jQuery('#').click()
is generated.
The Copyright Text default setting in Customizer > Theme Options > Copyright Section is now set to '1'
instead of ''
so a 1 is shown in frontend footer if no text is defined by user in Customizer (you can see that 1 also on your theme demo website and also other problemes with the breadcrumbs which we did not look at because we do not use them).
And another issue which has been there also before 1.0.10, there are two extra closing </div>
in function custom_page_callback()
in lines 484 and 485 which should not be there.
lawyerfirm 1.0.10, WordPress 6.6.2
]]>The code snippets provided below will update the WP Fastest Cache plugin links and text used in the backend and frontend to ensure homogeneity across the board and agree better with WordPress’ guidelines.
Any questions or issues, please let me know.
Enjoy!
———————
Code Snippet (Affects Backend):
/* BACKEND: Change WP Fastest Cache "Delete Cache" and "Clear Cache" Strings to "Purge Cache" */
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Clear cache files when a post or page is published' :
$translated_text = 'Purge cache files when a post or page is published';
break;
case 'Clear cache files when a post or page is updated' :
$translated_text = 'Purge cache files when a post or page is updated';
break;
case 'Delete Cache' :
$translated_text = 'Purge Cache';
break;
case 'Clear All Cache' :
$translated_text = 'Purge Cache';
break;
case 'Clearing Specific Pages' :
$translated_text = 'Purging Specific Pages';
break;
case 'Delete Cache and Minified CSS/JS' :
$translated_text = 'Purge Cache and Minified CSS/JS';
break;
case 'Minify Css' :
$translated_text = 'Minify CSS';
break;
case 'Minify Css Plus' :
$translated_text = 'Minify CSS Plus';
break;
case 'Combine Css' :
$translated_text = 'Combine CSS';
break;
case 'Minify Js' :
$translated_text = 'Minify JS';
break;
case 'Combine Js' :
$translated_text = 'Combine JS';
break;
case 'Combine Js Plus' :
$translated_text = 'Combine JS Plus';
break;
case 'More powerful minify html' :
$translated_text = 'More powerful minify HTML';
break;
case 'You can decrease the size of css files' :
$translated_text = 'You can decrease the size of CSS files';
break;
case 'More powerful minify css' :
$translated_text = 'More powerful minify CSS';
break;
case 'Reduce HTTP requests through combined css files' :
$translated_text = 'Reduce HTTP requests through combined CSS files';
break;
case 'You can decrease the size of js files' :
$translated_text = 'You can decrease the size of JS files';
break;
case 'Reduce HTTP requests through combined js files' :
$translated_text = 'Reduce HTTP requests through combined JS files';
break;
case 'You can remove the emoji inline css and wp-emoji-release.min.js' :
$translated_text = 'You can remove the emoji inline CSS and wp-emoji-release.min.js';
break;
case 'Render Blocking Js' :
$translated_text = 'Render Blocking JS';
break;
case 'Delay Js' :
$translated_text = 'Delay JS';
break;
case 'Some js sources will not be loaded until scrolling or moving the mouse' :
$translated_text = 'Some JS sources will not be loaded until scrolling or moving the mouse';
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
/* BACKEND: Change WP Fastest Cache Admin Toolbar Main Link String from "Delete Cache" to "Fastest Cache" */
function change_admin_toolbar_main_link_backend() {
if ( is_admin_bar_showing() ) {
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent');
$args = array(
'id' => 'wpfc-toolbar-parent',
'title' => 'Fastest Cache',
'href' => '/wp-admin/admin.php?page=wpfastestcacheoptions',
);
$wp_admin_bar->add_node($args);
}}
add_action('wp_before_admin_bar_render', 'change_admin_toolbar_main_link_backend', 20, 3);
/* BACKEND: Change WP Fastest Cache Admin Toolbar Sub-Links Strings from "Clear Cache" and "Delete Cache" to "Purge Cache" */
function change_admin_toolbar_sub_links_backend() {
if ( ! is_admin() ) {
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent-delete-cache');
$args = array(
'parent' => 'wpfc-toolbar-parent',
'id' => 'wpfc-toolbar-parent-delete-cache',
'title' => 'Purge Cache',
);
$wp_admin_bar->add_node($args);
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent-clear-cache-of-this-page');
$args = array(
'parent' => 'wpfc-toolbar-parent',
'id' => 'wpfc-toolbar-parent-clear-cache-of-this-page',
'title' => 'Purge Cache of this Page',
);
$wp_admin_bar->add_node($args);
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent-delete-cache-and-minified');
$args = array(
'parent' => 'wpfc-toolbar-parent',
'id' => 'wpfc-toolbar-parent-delete-cache-and-minified',
'title' => 'Purge Cache and Minified CSS/JS',
);
$wp_admin_bar->add_node($args);
}}
add_action('wp_before_admin_bar_render', 'change_admin_toolbar_sub_links_backend', 20, 3);
/* BACKEND: Change WP Fastest Cache Admin Toolbar Ajax Spinner and Icon from "Cheetah" to Generic ("Gear") Icon */
function override_admin_toolbar_css_backend() {
if ( is_admin_bar_showing() ) { ?>
<style type="text/css">
#revert-loader-toolbar {
background-image: url(/wp-content/uploads/2024/08/ajax-loading-gif-1.gif)!important; // use the File URL of your spinner
}
/* Change plugin icon in Admin Toolbar */
#wp-admin-bar-wpfc-toolbar-parent > .ab-item::before {
// content: url(/wp-content/plugins/wp-fastest-cache/images/icon.svg)!important; /* use original plugin logo */
content: "\f111"!important; /* use custom plugin logo (gear) */
margin-top: .1em!important;
}
</style>
<?php }
}
add_action( 'admin_head', 'override_admin_toolbar_css_backend', 20, 3 );
Code Snippet (Affects Frontend):
/* FRONTEND: Change WP Fastest Cache "Delete Cache" and "Clear Cache" Strings to "Purge Cache" */
function change_admin_toolbar_main_link_frontend() {
if ( ! is_admin() ) {
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent');
$args = array(
'id' => 'wpfc-toolbar-parent',
'title' => 'Fastest Cache',
'href' => '/wp-admin/admin.php?page=wpfastestcacheoptions',
);
$wp_admin_bar->add_node($args);
}}
add_action('wp_before_admin_bar_render', 'change_admin_toolbar_main_link_frontend', 20, 3);
/* FRONTEND: Change WP Fastest Cache Admin Toolbar Sub-Links Strings from "Clear Cache" and "Delete Cache" to "Purge Cache" */
function change_admin_toolbar_sub_links_frontend() {
if ( ! is_admin() ) {
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent-delete-cache');
$args = array(
'parent' => 'wpfc-toolbar-parent',
'id' => 'wpfc-toolbar-parent-delete-cache',
'title' => 'Purge Cache',
);
$wp_admin_bar->add_node($args);
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent-clear-cache-of-this-page');
$args = array(
'parent' => 'wpfc-toolbar-parent',
'id' => 'wpfc-toolbar-parent-clear-cache-of-this-page',
'title' => 'Purge Cache of this Page',
);
$wp_admin_bar->add_node($args);
global $wp_admin_bar;
$wp_admin_bar->remove_node('wpfc-toolbar-parent-delete-cache-and-minified');
$args = array(
'parent' => 'wpfc-toolbar-parent',
'id' => 'wpfc-toolbar-parent-delete-cache-and-minified',
'title' => 'Purge Cache and Minified CSS/JS',
);
$wp_admin_bar->add_node($args);
}}
add_action('wp_before_admin_bar_render', 'change_admin_toolbar_sub_links_frontend', 20, 3);
/* FRONTEND: Change WP Fastest Cache Admin Toolbar Ajax Spinner and Icon from "Cheetah" to Generic ("Gear") Icon */
function override_admin_toolbar_css_frontend() {
if ( is_admin_bar_showing() ) { ?>
<style type="text/css">
#revert-loader-toolbar {
background-image: url(/wp-content/uploads/2024/08/ajax-loading-gif-1.gif)!important; // use the File URL of your spinner
}
/* Change plugin icon in Admin Toolbar */
#wp-admin-bar-wpfc-toolbar-parent > .ab-item::before {
// content: url(/wp-content/plugins/wp-fastest-cache/images/icon.svg)!important; /* use original plugin logo */
content: "\f111"!important; /* use custom plugin logo (gear) */
margin-top: .1em!important;
}
</style>
<?php }
}
add_action( 'wp_head', 'override_admin_toolbar_css_frontend', 20, 3 );
]]>theme
key.
$time = time();
update_option( '_ccfm_style_timestamp_theme', $time );
In wp_head
two filters are set up:
add_filter( 'style_loader_src', 'ccfm_show_src_version', 10, 2 );
add_filter( 'script_loader_src', 'ccfm_show_src_version', 10, 2 );
The filter uses above theme
key and changes the ver
parameter in theme file urls to the timestamp of last cache clear time.
function ccfm_show_src_version ( $src, $handle ) {
$key = ccfm_custom_src_key( $src );
$timestamp = get_option( '_ccfm_style_timestamp_' . $key, '' );
...
$query['ver'] = $timestamp;
return add_query_arg( $query, $src_parts[0] );
...
}
This happens no matter what and can not be switched off.
Would expect the plugin to not change theme scripts/styles version in frontend output.
Clear Cache for Me 2.2, WordPress 6.6.2
PS. Please also update “tested up to” WordPress version.
]]>Since the latest update for the free version of Elementor, I have noticed that wherever the “Zoom In” has been used, it’s become massive when loading the website, before it was a subtle Zoom in animation and not so in your face.
This seems to be affecting other websites where the Zoom In animation has been used.
WordPress and all plugins are up to date.
Thanks
Javed