Advertisement
Miryamk

Untitled

May 22nd, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. /**
  3. * This is where you can copy and paste your functions !
  4. */
  5.  
  6.  
  7. add_action('wp_head','my_analytics',1,20);
  8.  
  9. function my_analytics() {
  10. .............
  11. }
  12.  
  13. add_filter('get_comment_author_link', 'gkp_remove_nofollow');
  14. add_filter('comment_text', 'gkp_remove_nofollow');
  15.  
  16. function gkp_remove_nofollow( $text ) {
  17. $text = str_replace("rel='external nofollow'", "rel='external'", $text);
  18. $text = str_replace('rel="nofollow"', '', $text);
  19. return $text;
  20. }
  21.  
  22. function widget_area_404() {
  23.  
  24. register_sidebar( array(
  25. 'name' => '404 Page',
  26. 'id' => '404',
  27. 'description' => __( 'Widgets placed here will be shown on the 404 Not Found.' ),
  28. 'before_widget' => '<div class="et_pb_post">',
  29. 'after_widget' => '</div>',
  30. 'before_title' => '<h4 class="widgettitle">',
  31. 'after_title' => '</h4>',
  32. ) );
  33. }
  34. add_action( 'widgets_init', 'widget_area_404' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement