Removing a link below from footer

The part you need to remove is this: add_action( ‘wp_footer’, ‘addcopy’ );. Or remove it with remove_action, like so: remove_action(‘wp_footer’,’addcopy’); However, if your theme has included this link in such a way that you cannot easily remove it– that is, cannot remove it with a theme option without hacking the code– then there is probably … Read more

Identify the page I am viewing

is_home() will do just exactly that. It returns true on the home page and false on any other page. Your solution will be to completely wrap your code above in an is_home() conditional if ( is_home() ) { // Your in question comes here }

Which function required?

Add <?php get_footer(); ?> into index.php or the template you are using Then create footer.php and add in something like this: <?php /* Always have wp_footer() just before the closing </body> * tag of your theme, or you will break many plugins, which * generally use this hook to reference JavaScript files. */ wp_footer(); ?> … Read more

Copyright info change – Corporate Plus Theme PHP [closed]

Both functions check if the function corporate_plus_footer() exists. If not, one is defined. Without going deeper into hooks and filters, you can simply declare your own corporate_plus_footer() and the other won’t get loaded. Add this to your functions.php function corporate_plus_footer() { echo ‘it works’; } No additional add_action() or similar. Just this function in your … Read more

JavaScript enque stopped working

I am not sure if you posted code as-is or extracted part of it, but per this snippet – you are hooking function inside itself. Which doesn’t seem like it will work nicely. 🙂 Also init hook should not be used for enqueue, on front-end hook to use is wp_enqueue_scripts, see where is the right … Read more

Load CSS in footer, like your can with JS?

Yes, technically you can. But you shouldn’t load css in the footer, css links outside of the <head> are considered invalid. A better technique would be to add the css-links to the dom with javaScript. You may even want to split out the css so that critical portions are loaded inline (so you avoid a … Read more

How can I remove the WordPress-Version (?ver=5.x) from my plugin

Change the 4th parameter from false to null. wp_enqueue_script( ‘myID’, $url, array( ‘jquery’ ), null, true ); From the wp_enqueue_script() documentation: $ver (string|bool|null) (Optional) String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If version is set to false, a version … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)