Titles for WP Answers widgets will not update after I click Save. Is this a bug?
Hi,
If you open functions.php in the theme directory, you can edit them there,
They were hard-coded as we use some custom styles for them.
Awesome, thanks oli! I've created a child theme, so that's an easy change.
OK, "easy" was a little premature ;) I'm trying to override the function but am running into an error. Here's my code in my child theme's functions.php file:
====
[code]
add_action('after_setup_theme', 'child_theme_widget');
function child_theme_widget($args, $instance) {
extract( $args );
$title = apply_filters('widget_title', $instance['title']);
?>
<?php echo $before_widget; ?>
Along the same lines, I can't seem to override some parts of the WP-Answers theme in my child theme. For example, I copied login-form.php to my child theme directory and removed the H2 heading at the top. No change. Making the same edit to the default file worked. Another example is the hard coded styles for the Register button in registerform.php... I couldn't override those in my child theme, nor could I override the button value (which I want to change to "Sign Up".) I had to edit the default file to make these changes. Meanwhile, I've overridden code in footer.php without problems. What am I missing? Thanks!
I havent worked with child themes before,
Ill have a look into it for you.
Child theme and function override functionality would be super sweet! As it stands, I have a child theme that only works half the time, and for other edits I have to modify the WP-Answers theme or plugin files directly, which will break on the next WP-Answers upgrade and force me to manually copy the upgrades into my modified files.
It looks like you're new here. If you want to get involved, click one of these buttons!