Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Forum: Hacks
    In reply to: Undefined offset
    Thread Starter misharnet

    (@misharnet)

    Thanks DionDesigns it works!

    Thread Starter misharnet

    (@misharnet)

    Well, don’t know what happened, but no links in my post above?!

    Anyway, my plugins are : ns-tweet & ns-fblikebox

    Forum: Hacks
    In reply to: Theme Check problem
    Thread Starter misharnet

    (@misharnet)

    It was in the window_post.php on line 11. If you use TinyMCE check that file.

    Forum: Hacks
    In reply to: Theme Check problem
    Thread Starter misharnet

    (@misharnet)

    I found what’s wrog! There was one line with <title></title> tag in TinyMCE folder. I remove the folder and now my theme passed the check!

    Forum: Hacks
    In reply to: Theme Check problem
    Thread Starter misharnet

    (@misharnet)

    I understand that. Thanks. don’t get me wrong, I am not assuming that there’s might be any problem with your plugin, I am sure that it’s up to me. It is just a little bit frustrating that I have resolved all the other issues, and it’s takimg me so long to resolve this one. I’ll handle it somehow.

    Forum: Hacks
    In reply to: Theme Check problem
    Thread Starter misharnet

    (@misharnet)

    Soory Samuel, I am not still familiar enough with these forums. That is why I posted this topic in this one. Sorry again for not replying to you sooner, in my country now is 6 am, so I was sleeping when you first replied.
    To me is only important does it check only files in theme directory or in any other related directories, I mean if any plugin is activated till it’s performing checking …

    Forum: Hacks
    In reply to: Theme Check problem
    Thread Starter misharnet

    (@misharnet)

    Well, thanks for your suggestion, but it didn’t remove Theme Check warning.
    <?php wp_title( '|', true, 'right' ); ?> have some other themes as well, and they pass Theme Check with it.

    Obviously, I don’t know how to filter ir right, as Theme Check suggested it. Maybe the problem is somewhere in these lines of codes in my functions.php :

    /**
     * Creates a nicely formatted and more specific title element text
     * for output in head of document, based on current view.
     * @param string $title Default title text for current view.
     * @param string $sep Optional separator.
     * @return string The filtered title.
     */
    function nsblog_wp_title( $title, $sep ) {
    	global $paged, $page;
    
    	if ( is_feed() ) {
    		return $title;
    	}
    
    	// Add the blog name.
    	$title .= get_bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) ) {
    		$title = "$title $sep $site_description";
    	}
    
    	// Add a page number if necessary.
    	if ( $paged >= 2 || $page >= 2 ) {
    		$title = "$title $sep " . sprintf( esc_html__( 'Page %s', 'nsblog' ), max( $paged, $page ) );
    	}
    
    	return $title;
    }
    add_filter( 'wp_title', 'nsblog_wp_title', 10, 2 );
    Thread Starter misharnet

    (@misharnet)

    Thanks for quick reply!

    Thread Starter misharnet

    (@misharnet)

    Thank you guys for your replies, I asked there too, but I assumed, there is much bigger wordpress community, so I wanted to ask here too.

Viewing 9 replies - 16 through 24 (of 24 total)