WordPress Backup

There’s 2 steps required to take a full backup. Backup your content Backup your files Backup Content To backup your content, you can use the WordPress export tool. Or you can take a database dump or export copy of your database directly from phpMyAdmin which is the best method. Another way to backup your content … Read more

How to add suggest plugin to theme?

TGM Plugin Activation is the most popular PHP library among WordPress theme developers to allows them to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces

Unwanted blank lines before tag

the_content doesn’t affect the DOCTYPE and <html> tags, only the post/page content. One of your plugins, or something else in the theme is either throwing an error, or is printing something earlier than it should. Have you tried: Disabling each plugin one by one and see when it is fixed. Editing wp-config.php and adding define( … Read more

dequeue not work

Scripts should be enqueued on wp_enqueue_scripts action hook, which runs after init action. So dequeuing on init won’t work because sripts are not enqueued yet. Before enqueued scripts are printed, wp_print_scripts action is triggered so you can dequeue or unregister scripts safely at this moment: add_action( ‘wp_print_scripts’, ‘drw_timelinr_dequeue’ ); function drw_timelinr_dequeue () { wp_dequeue_script(‘jquery.timelinr’); } … Read more

Disable the Custom Internal CSS added by theme.json for Certain Pages

We can look into the wp_enqueue_global_styles() function, that calls wp_should_load_separate_core_block_assets() and see it contains e.g. the should_load_separate_core_block_assets filter but we can’t disable the global styles on the front-end, using this filter because of: /* * Global styles should be printed in the head when loading all styles combined. * The footer should only be used … Read more