Jones Elizabeth
Forum Replies Created
-
Forum: Themes and Templates
In reply to: What do endwhile; and endif; do in the loop?Thank-you ??
Forum: Fixing WordPress
In reply to: How do I understand functions.php files – learningThanks @esmi , that’s how much of a newbie I am! I’m following a tutorial book, which is based on 3.0. Do you know where I can find a list of the changes, from 3.0 to 3.4? Thanks again! ??
Forum: Themes and Templates
In reply to: I am trying to install my own theme & it won't work!There aren’t any empty spaces, I’ve checked that. Thanks again.
Forum: Themes and Templates
In reply to: I am trying to install my own theme & it won't work!<?php
add_action (‘widgets_init’,’my_sidebar’);
function my_sidebar() {
/* Register the ‘primary’ sidebar. */
register_sidebar ( array( ‘id’ => ‘primary’, ‘name’ => _( ‘primary’ ), ‘description’ => _(‘This is the primary sidebar.’), ‘before_widget’ => ‘<div id=”%1$s” class=”widget%2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h3 class=”widget-title”> ‘, ‘after_title’ => ‘</h3>’ ) ); } ?>So, from register_sidebar is line 5. There are only 5 lines. Thanks for taking an interest.
Has anyone got any ideas please?
Forum: Fixing WordPress
In reply to: What is the point of body_class?Thank-you Christine, that makes it crystal clear. Are there any other websites you’d recommend for learning wordpress development?
Thanks again.
Thanks, for taking an interest . This is all from line 5 (very long):
register_sidebar ( array( ‘id’ => ‘primary’, ‘name’ => _( ‘primary’ ), ‘description’ => _(‘This is the primary sidebar.’), ‘before_widget’ => ‘<div id=”%1$s” class=”widget%2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h3 class=”widget-title”> ‘, ‘after_title’ => ‘</h3>’ ) ); } ?>
I have added <? ob_start(); ?> and <? ob_flush(); ?> to the index.php to try and solve this. It hasn’t worked.
It is at https://greentest1.co.uk/wp/ (I am using the domain to learn wordpress development)
Forum: Fixing WordPress
In reply to: What is the point of body_class?OK. Thank-you for helping, @alchymyth ??