Webnoob
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeFound it! missing ?>
I now have a widget, thank you so much for going into detail on this.Forum: Fixing WordPress
In reply to: Adding widgets to header in twenty eleven themeHi
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?
Forum: Themes and Templates
In reply to: Att: Admin – removal of postHi 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
Forum: Themes and Templates
In reply to: Twenty Eleven – adding text beside search boxIs it possible to get this topic deleted please?
Forum: Themes and Templates
In reply to: Twenty Eleven – adding text beside search boxFirebug isn’t really helping. The website is dundalkherbal.com
if this helps?[ Please do not bump, that’s not permitted here. ]
Forum: Themes and Templates
In reply to: Yet another Twenty Eleven width issueYou 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!Forum: Themes and Templates
In reply to: Yet another Twenty Eleven width issueI’ve changed that since you suggested downloading the basic child theme. All that is in it now is the above code.
Forum: Themes and Templates
In reply to: Yet another Twenty Eleven width issueThanks 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;
Forum: Themes and Templates
In reply to: Yet another Twenty Eleven width issueRight, 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 337even before I added the functions.php to the folder the layout did not seem expanded.
Any suggestions please? please??
Forum: Themes and Templates
In reply to: Yet another Twenty Eleven width issueis there any other code I could put in the child theme just to test it?
Forum: Themes and Templates
In reply to: Yet another Twenty Eleven width issueThanks esmi, but nope no difference with that.