• when i try to add a post or update something on the site it takes me to a blank white page. i know that this problem is caused by something in the functions.php file but i cant find the problem

    this my functions.php file

    <?php
    function load_on_init() {
    
    	if ( function_exists( 'add_theme_support' ) ) {
    
    	add_theme_support( 'menus' );
    
    	}
    
    if ( function_exists( 'register_sidebar' ) ) {	
    
    register_sidebar( array(	
    
    'name' => 'Sidebar',	
    
    'before_widget' => '',	
    
    'after_widget' => '',	
    
    'before_title' => '<h3>',
    	'after_title' => '</h3>',
    
    	) );
    
    	register_sidebar( array(	
    
    'name' => 'Footer',
    
    'before_widget' => '',	
    
    'after_widget' => '',	
    
    'before_title' => '',
    
    'after_title' => '',
    
    	) );
    
    }
    
    }
    
    add_theme_support('post-thumbnails');
    
    add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
    
    function my_post_image_html( $html, $post_id, $post_image_id ) {
    
      $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
    
      return $html;
    
    }
    
    // Puts link in excerpts more tag
    
    function new_excerpt_more($more) {
    
           global $post;
    
    return '<a class="moretag" href="'. get_permalink($post->ID) . '">       ...   اقرأ المزيد    </a>';
    
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    add_action( 'init', 'load_on_init' );
    
    ?>


    [Please do not post duplicate threads or bump – per the forums rules – your other thread was deleted ]

  • The topic ‘functions.php poblem – Links take to a blank page…’ is closed to new replies.