niericentral
Forum Replies Created
-
I haven’t worked on that site since the recent WP upgrade. However, with the previous version I was never able to find a solution and just had to do things without functions.php. Maybe this bump will bring in somebody with some insight.
Forum: Themes and Templates
In reply to: Various White Screens with Child Theme functions.phpAh! I forgot to mention an important point (I will update the original post) that the code I pasted above does actually work. So I am able to put shortcodes in the titles and they function correctly. It just also causes these other problems.
edit: It seems I can’t edit the original any more? So this will have to do.
Forum: Themes and Templates
In reply to: Various White Screens with Child Theme functions.phpThanks for the suggestion govpatel. I should have mentioned before that after reading somewhat similar problems I made sure there is no whitespace before or after the simple php code that I pasted above. So specifically, there is no new line/etc. before or after that code.
Forum: Themes and Templates
In reply to: Various White Screens with Child Theme functions.phpThanks for the reply Rich. I think all of us here did that originally as it should be done, but we ended up with white screens and so the whole “delete the original from the parent theme”, etc. are attempts at finding a workaround (so far unsuccessful for me).
Forum: Themes and Templates
In reply to: Various White Screens with Child Theme functions.phpJust to be clear if anyone else reads this. There is no workaround currently. Any help or suggestions are still appreciated.
Forum: Themes and Templates
In reply to: Various White Screens with Child Theme functions.phpYes, I did exactly as you suggested and got the results written above (i.e. same results as with child functions.php unfortunately).
It seems like it would be a major bug if this is normal behavior. So therefore it seems like I must be missing something. Argh.
Forum: Themes and Templates
In reply to: Various White Screens with Child Theme functions.phpThanks for the idea. I tried it, but I seem to get the same results as I did before. Just to confirm (php noob here), I added my code immediately after the opening <?php of the original as follows:
<?php if (!is_admin()) add_filter('widget_title', 'do_shortcode', 11); /** * TwentyTen functions and definitions * ...
Is that the right place?
For reference, I tried deleting the twentyten functions.php and putting the same file into my child theme and it works normally.
Bump on this question. I get the white screen with a single line functions.php. Absolutely no extra line feeds, carriage returns, etc. I tried deleting the file and putting a new one (again without extra lines) with no effect.
?<?php add_filter(‘widget_title’, ‘do_shortcode’); ?>
When I go back to anything after the white screen, it seems to have been updated, but it happens all the time with many different parts of wordpress after functions.php is added to the child theme.
Anyone have an idea?