odoremieux
Forum Replies Created
-
If you change a bit your code
With this code, it’s added only once, and in the head. Your current code add it before the html tag
<style type="text/css" id="cst_font_data"> @font-face { font-family: 'Gotham Bold'; font-weight: 400; src: url('https://gutenberg.local/wp-content/uploads/2023/10/Gotham-Bold.otf') format('OpenType'); } </style> <!DOCTYPE html> <html class="wp-toolbar" lang="en-US"> <head>
Here are some suggestions
public function add_block_assets_style() { if ( is_admin() && ! is_customize_preview() ) { wp_register_style( 'cst_font_data', false ); wp_enqueue_style( 'cst_font_data' ); add_action( 'enqueue_block_assets', array( $this, 'add_style' ) ); } add_action( 'enqueue_block_editor_assets', array( $this, 'enque_data' ) ); } public function add_style() { $font_styles = ''; $query_posts = $this->get_existing_font_posts(); if ( $query_posts ) { foreach ( $query_posts as $key => $post_id ) { $font_styles .= get_post_meta( $post_id, 'fonts-face', true ); } wp_reset_postdata(); } if ( ! empty( $font_styles ) ) { wp_add_inline_style('cst_font_data',wp_strip_all_tags( $font_styles )); /* ?> <style type="text/css" id="cst_font_data"> <?php echo wp_strip_all_tags( $font_styles ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </style> <?php */ } }
Forum: Plugins
In reply to: [Quick Featured Images] Performance issueIt’s the list view
On the media library if you go at the top (screen options), you can select the number of items displayed on the page. You can do that for any post type
Side note the media library has over 67000 items, which has an impact of the query.
The LIKE compare characters per characters, = just the string
Forum: Plugins
In reply to: [Limit Max IPs Per User] BugHey,
It’s working. Thanks for following up.
Olivier
Forum: Plugins
In reply to: [Download Manager] compatible versions 2.6x versions 2.7 and aboveThe Migration didn’t work for us. It can’t find the files, and all the id are gone in the shortcode.
Thanks Mary Anne, it’s working.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Problem with recurring eventsThanks.
Yes I tried the refresh link, several times, we saw this problem few days ago, tried several refresh before asking here.
Forum: Plugins
In reply to: [Really Simple Share] Not compatible with the Facebook pluginIt’s because FB have you on the list of incompatible plugins. When the plugin is disabled, the list of incompatible plugins is empty. So it’s a FB bug, but it’s your fault ?? . Just pushing your buttons
Forum: Plugins
In reply to: [Really Simple Share] Not compatible with the Facebook pluginHi,
Are you using the latest version of the Facebook Plugin?
It use to work for me until I did update.
I don’t have any Facebook option enabled with the Really Simple Facebook … Plugin.
When I do enable the 2 plugins, on the Facebook plugin I get
Fatal error: Call to undefined function fb_admin_dialog() in /home/wphelpcl/public_html/blog/wp-content/plugins/facebook/admin/settings.php on line 328If I disable Really Simple Facebook … Plugin, it work with no problem.
Thanks,
Olivier
Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] is this abandonware?I don’t have a problem with the delete. So I guess I fixed it. ??
Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] is this abandonware?Did you turn on debugging output message on WordPress?
You can also put debug message yourself.We did add a lot of functionalities to that plugins, and that’s how we got started.
Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] is this abandonware?It’s a great plugin.
You can always try to fix the problem yourself.Or hire some professional to fix it for you.
You’ll have to customize the code to be able to use external videos.
Olivier (WP Help Club)
Forum: Fixing WordPress
In reply to: Hackek By eXploit-1307You need to do regular backups and store them in a safe place. Another place than your site.
Is your site up to date?
What about your plugins or themes?Olivier [signature moderated]
Forum: Themes and Templates
In reply to: I need help editing a template monster theme we purchasedWhat is your level in development?
Some of the customization might require that you have some knowledge in php.
Usually you should start by creating a child theme.[moderated]
Olivier [signature moderated]
Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] Issues with CVG 1.6Did you select a skin in the settings?
Olivier [signature moderated]