Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    Sorry but my BP 1.2.10 causes lot of troubles with WP 3.3.1 …

    Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    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<br /> /*<br /> * Print the tag based on what is being viewed.<br /> */<br /> global $page, $paged;</p> <p>wp_title( ‘|’, true, ‘right’ );</p> <p>// Add the blog name.<br /> bloginfo( ‘name’ );</p> <p>// Add the blog description for the home/front page.<br /> $site_description = get_bloginfo( ‘description’, ‘display’ );<br /> if ( $site_description && ( is_home() || is_front_page() ) )<br /> echo ” | $site_description”;</p> <p>// Add a page number if necessary:<br /> if ( $paged >= 2 || $page >= 2 )<br /> echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘twentyten’ ), max( $paged, $page ) );</p> <p>?>

    <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 >

    )`

    Any ideas?

    Thanks

    Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    I don’t know how to post the html code…

    thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)