My plugins are ending up above the header?

Shortcodes should return their content, never echo it. From the add_shortcode() docs: Note that the function called by the shortcode should never produce an output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. But the functions … Read more

How to set “split_on_numerics” to false in ElasticSearch mapping using ElasticPress? (for proper SKU search in WooCommerce) [closed]

This one was tough, but here is the solution for this! First, you will need to use SSH to access the server where you have ElasticSearch installed. After that, you will want to perform these commands: This one will first close your index, only then you can perform changes: curl -X POST http://localhost:9200/YOUR-INDEX/_close?pretty This one … Read more

how remove font to increase site speed load

You can either make a child theme, or make a plugin. Within that child theme or plugin, you’ll dequeue one of the copies. If you don’t have any other theme customizations, it probably makes the most sense to create a custom plugin. Both your theme and your plugin are paid, so you’ll need to look … Read more

Use current class method inside add_submenu_page()

You’re getting that error because the 5th parameter for add_submenu_page() should be a string which is the menu slug and yet you supplied a callback ([$this,’sports_info_page’]). So be sure to use a valid slug like so and the error will be gone: add_submenu_page( ‘sports_info’, // parent slug ‘Sports Information’, // page title ‘Sports Information’, // … Read more