Hot answers tagged

3

You'll need to log onto your FTP server and goto the wp-content folder -> plugins -> and delete the GZIP plugin you have installed. If you are not sure about FTP, you can probably try and go through your web server control panel, they usually have some sort of file browsing option. You might also need to check the .htaccess file also, but just try removing ...


2

Apparently, for the PHP code to run (with the WordPress functions), you have to use AJAX differently First, you need to add wp_localize_script() to add data to the script. I used the following code: // For AJAX loading of sections wp_localize_script('customizer', 'ajax', array( 'url' => admin_url('admin-ajax.php') )); Where customizer is the ...


1

to link plugin and theme, I recommend you to use hooks. In the theme, you create a new hook with do_action("under_the_picture");. And in the plugin you make a hook like this : add_action("under_the_picture", function () { echo "plugin data to display under the picture"; }); then when the plugin is not activated, the theme place "under_the_picture" is ...



Only top voted, non community-wiki answers of a minimum length are eligible