Viewing 6 reply threads
  • Author
    Posts
    • #8845
      thor
      Member

      Since pik is a offensive word in Denmark I would like to remove the ‘This website is powered by Piklist. Learn more at https://piklist.com/ –‘

      How can I do that?

    • #8849
      Steve
      Keymaster

      @thor– You can use the WordPress function remove_action

      
      add_action( 'admin_head', 'remove_piklist_love' );
      
      function remove_piklist_love() {
      	remove_action('wp_footer', array('piklist_theme', 'piklist_love'), 1000);
      }
      
    • #8850
      thor
      Member

      I have added it to the functions.php but somehow this isn’t working?

    • #8853
      cyclissmo
      Member

      I use this action sparingly, only for “mission critical” websites. I just plop it into functions.php, outside of any action callback and it works just fine:

      remove_action( 'wp_footer', array( 'piklist_theme', 'piklist_love' ), 1000 );

      And then there is the meta “generator” that also specifies piklist which should be removed as well:

      remove_action('wp_head', array('piklist_theme', 'version_in_header'));

    • #8854
      Steve
      Keymaster

      @thor– Try running it from wp_head:

      
      add_action( 'wp_head', 'remove_piklist_love' );
      
      function remove_piklist_love() {
      	remove_action('wp_footer', array('piklist_theme', 'piklist_love'), 1000);
      }
      


      @cyclissmo
      remove_action() must be called inside a function and cannot be called directly in your plugin or theme:
      https://codex.wordpress.org/Function_Reference/remove_action#Example

    • #8855
      thor
      Member

      @Steve – Thanks. Now it works 🙂

    • #8856
      Steve
      Keymaster

      Great. Closing ticket.

Viewing 6 reply threads
  • The topic ‘remove piklist_love’ is closed to new replies.