Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Found it! missing ?>
    I now have a widget, thank you so much for going into detail on this.

    Hi

    I’ve been trying to do the exact same thing, and followed the above. The whole site came down, just appearing as a white screen. So I stepped back each bit to see what was causing it. I have a child theme and this is the content of my functions.php

    <?php
    function my_header_image_height($height) {
    	return 150;
    }
    add_filter( 'twentyeleven_header_image_height', 'my_header_image_height');
    
    // It's a wide layout so make the content wider by 140px
    if ( ! isset( $content_width ) )
       $content_width = 724;
    
    <?php
    /**
     * Register our sidebars and widgetized areas.
     *
     */
    function arphabet_widgets_init() {
    
    	register_sidebar( array(
    		'name' => 'Home right sidebar',
    		'id' => 'home_right_1',
    		'before_widget' => '<div>',
    		'after_widget' => '</div>',
    		'before_title' => '<h2 class="rounded">',
    		'after_title' => '</h2>',
    	) );
    }
    add_action( 'widgets_init', 'arphabet_widgets_init' );
    ?>

    Converting2wp, you say that a syntax error would cause this problem. Can you see what the problem is above please?

    Thread Starter Webnoob

    (@webnoob)

    Hi Esmi

    Would it be possible to remove my reply to it that contains my website address please? It was a mistake on my behalf posting it, which I won’t do again.

    -Noob

    Thread Starter Webnoob

    (@webnoob)

    Is it possible to get this topic deleted please?

    Thread Starter Webnoob

    (@webnoob)

    Firebug isn’t really helping. The website is dundalkherbal.com
    if this helps?

    [ Please do not bump, that’s not permitted here. ]

    Thread Starter Webnoob

    (@webnoob)

    You legends!!! It works ??

    ok from this thread, for anyone else who has the same problem:

    a) no short cuts, a child theme is vital.
    b) get a template child theme.
    c) add the following code to your style.css in your child theme:

    /* One column */
    .one-column #page {
    	max-width: 1000px;
    }

    and TA DA!! Thank you so much esmi and alchymth The Sweeper.
    YOU ROCK!

    Thread Starter Webnoob

    (@webnoob)

    I’ve changed that since you suggested downloading the basic child theme. All that is in it now is the above code.

    Thread Starter Webnoob

    (@webnoob)

    Thanks again esmi. Downloaded that basic child theme, it works fine. I added the code from the tutorial but again no change. My Style.css now looks like this:

    /*
    Theme Name:Twenty Eleven Child
    Version: 2.0
    Theme URI: https://quirm.net/themes
    Description: A basic starter child theme for Twenty Eleven
    Author: Mel Pedley
    Author URI: https://blackwidows.co.uk
    Template: twentyeleven
    License: GNU General Public License v2
    License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    */
    
    /*  Copyright 2009-2010  Mel P.  (email : [email protected])
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2,
    as published by the Free Software Foundation.
    
    You may NOT assume that you can use any other version of the GPL.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
    USA
    
    The license for this software can also likely be found here:
    https://www.gnu.org/licenses/gpl-2.0.html
    */
    
    /* Import layout */
    @import url(../twentyeleven/style.css);
    
    /* =Make our page layout wider
    -------------------------------------------------------------- */
    #page {
       max-width: 1140px;
    }
    .featured-posts,
    #ie7 article.intro {
       max-width: 1140px;
    }

    and my functions.php looks like this:

    <?php
    
    function my_header_image_height($height) {
    
        return 150;
    
    }
    
    add_filter( 'twentyeleven_header_image_height', 'my_header_image_height');
    
    // It's a wide layout so make the content wider by 140px
    
    if ( ! isset( $content_width ) )
    
       $content_width = 724;
    Thread Starter Webnoob

    (@webnoob)

    Right, definitely have child theme running fine. I’m still trying to follow the raindrops tutorial above. I have added a style.css file to my child folder and added the code as above, and I’ve copied over a functions.php exactly the same as is in the parent. But now I get this:
    Fatal error: Cannot redeclare twentyeleven_excerpt_length() (previously declared in D:\hshome\herbal\dundalkherbal.com\wp-content\themes\twentyeleven-child\functions.php:335) in D:\hshome\herbal\dundalkherbal.com\wp-content\themes\twentyeleven\functions.php on line 337

    even before I added the functions.php to the folder the layout did not seem expanded.

    Any suggestions please? please??

    Thread Starter Webnoob

    (@webnoob)

    is there any other code I could put in the child theme just to test it?

    Thread Starter Webnoob

    (@webnoob)

    Thanks esmi, but nope no difference with that.

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