Forum Replies Created
-
Sorry but my BP 1.2.10 causes lot of troubles with WP 3.3.1 …
Thanks.
So I’ve done a twentyten child theme based on twentyten 1.2 (actual released apparently).
But it doesn’t appear like my old customized BP twentyten. It doesn’t work with my`<?php
/**
* The Header for our theme.
*
* Displays all of the section and everything up till*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
<html ><meta charset="” />
<?php
/*
* Print thetag based on what is being viewed.
*/
global $page, $paged;wp_title( ‘|’, true, ‘right’ );
// Add the blog name.
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() ) )
echo ” | $site_description”;// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘twentyten’ ), max( $paged, $page ) );?>
<link rel="stylesheet" type="text/css" media="all" href="” />
<link rel="pingback" href="” />
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( ‘thread_comments’ ) )
wp_enqueue_script( ‘comment-reply’ );/* Always have wp_head() just before the closing
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to such
* as styles, scripts, and meta tags.
*/
wp_head();
?>function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if (node == null)
node = document;
if (tag == null)
tag = ‘*’;
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(“(^|\s)”+searchClass+”(\s|$)”);
for (i = 0, j = 0; i < elsLen; i++) {
if (pattern.test(els.className) ) {
classElements[j] = els;
j++;
}
}
return classElements;
}
function switchClassElements(className) {
var elems = getElementsByClass(className);
for(var i=0; i<elems.length ; i++) {
if(elems.style.display!=”none”)
elems.style.display = “none”;
else
elems.style.display = “block”;
}
}
window.onload = function() { switchClassElements(‘quick_post_widget_hide’); }<body >
< id=”site-title”>
<a href="” title=”" rel=”home”>
</><?php
// Check if this is a post or page, if it has a thumbnail, and if it’s a big one
if ( is_singular() && current_theme_supports( ‘post-thumbnails’ ) &&
has_post_thumbnail( $post->ID ) &&
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘post-thumbnail’ ) ) &&
$image[1] >= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post->ID );
elseif ( get_header_image() ) : ?>
<img src="” width=”" height=”" alt=”" /><a href="#content" title="”>-
<li class=”current_page_item”>
<a href="” title=”"><li class=”current_page_item”>
<a href="//” title=”"><li class=”current_page_item”>
<a href="//” title=”"><li class=”current_page_item”>
<a href="//” title=”"><li class=”current_page_item”>
<a href="//” title=”"><li class=”current_page_item”>
<a href="//” title=”">)`Any ideas?
Thanks
I don’t know how to post the html code…
thanks for your help