ThemeShaper Forums » Thematic

[closed]

Blank Screens

(4 posts)
  • Started 2 years ago by violetabella
  • Latest reply from violetabella
  • This topic is resolved
  1. violetabella
    Member

    Ok, so I finished up a theme, but when I installed it I get a blank white screen for the website and for the wordpress dashboard. I read here

    http://forums.themeshaper.com/topic/new-custom-child-theme-disrupting-wp-admin#post-7516

    about blank spaces in functions.php causing it, so I tried to remove as much empty space as possible. Before I try to reinstall, I was wondering if someone could take a look and tell me if it looks ok now:

    <?php
    
    function child_remove_pagetitles() {
       // Make changes to the original function
       if (is_page()) {
              $posttitle = '';
           } elseif (is_single()) {
              $posttitle = '<h1 class="entry-title">' . get_the_title() . "</h1>\n";
       //continue with original function
           } elseif (is_404()) {
               $posttitle = '<h1 class="entry-title">' . __('Not Found', 'thematic') . "</h1>\n";
           } else {
               $posttitle = '<h2 class="entry-title"><a href="';
               $posttitle .= get_permalink();
               $posttitle .= '" title="';
               $posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
               $posttitle .= '" rel="bookmark">';
               $posttitle .= get_the_title();
               $posttitle .= "</h2>\n";
           }
       return $posttitle;
       }
    add_filter('thematic_postheader_posttitle' ,'child_remove_pagetitles');
    
    ?>
    Posted 2 years ago #
  2. I tested your little snippet of code on 9.7.7 and 9.7.8 versions of Thematic, it works fine.

    The space issue you would be looking for would be at the beginning of the <?php and close of the ?>, so make sure there is no extra space before and after that markup, what is in between is fine. Hope that helps narrow it down for you.

    Posted 2 years ago #
  3. enable debug in wp-config.php and it will give you some kind of error code that is usually more helpful than a BSOD

    define('WP_DEBUG', true);

    and please use backticks not apostrophes to post code

    Posted 2 years ago #
  4. violetabella
    Member

    It did work fine, thanks!

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.