Support » Themes and Templates » Blank page after editing "Theme Functions (functions.php)"

  • Hi Guys,

    I seem to have done something to my “Theme Functions (functions.php)” page. After trying to round the corners of my header menu with the CSS code below (which did not work), I now have a completely blank page and I’m now unable to revert to my site through any other means. The only way I’m currently able to go to my dash board is by using the back button. Once on the dash board, anything else I click results in a blank page. HELP!!!

    The CSS code I used was:

    menu ul li:last-child a, .menu ul li:last-child:hover{
    -webkit-border-top-right-radius: 10px !important;
    -webkit-border-bottom-right-radius: 10px !important;
    -moz-border-top-right-radius: 10px !important;
    -moz-border-bottom-right-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    }
    .menu ul li:first-child a, .menu ul li:first-child:hover{
    -webkit-border-top-left-radius: 10px !important;
    -webkit-border-bottom-left-radius: 10px !important;
    -moz-border-top-left-radius: 10px !important;
    -moz-border-bottom-left-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    }

    This code was placed at the position marked XXXXX below in the “Theme Functions (functions.php)” sheet. Although I have removed it I still get black pages throughout. HELP!!

    // Theme Customizer Boilerplate
    require( get_template_directory() . ‘/inc/customizer-boilerplate/customizer.php’ );

    XXXXXX

    /*
    * ==================================
    * Theme Customizer Boilerplate edits
    * ==================================
    */

Viewing 7 replies - 1 through 7 (of 7 total)
  • WPyogi

    (@wpyogi)

    Forum Moderator

    Download a new copy of your theme to your local computer and then replace that file via FTP (or other file manager access your host uses).

    Thanks, will give that a go!

    Hi again,

    I do not have access to the hosting and thus cannot use this method.

    I installed this theme into another website I have and copied the file into this “defected” site but still the same issue. Any ideas please?

    CSS codes like this should go in the style.css and not the functions.php

    I do not have access to the hosting and thus cannot use this method.

    I don’t think that there’s any other way. You’ll need to have access to the site’s hosting or at least access through ftp. Where are you hosting the site?

    I have and copied the file into this “defected” site but still the same issue.

    How did you managed to copy it into the blank site?

    The only way I’m currently able to go to my dash board is by using the back button.

    I think this is just a cached paged on your browser.

    Thanks Ronangelo,

    The hosting account belongs to another and they are unable to grant me access.

    Regarding how I was able to copy into the site; I am still able to reload the previous and last page I edited, in this case functions.php, by using the back button. Any other action I perform results in a blank page however, the back button is able to return me to the previous page i.e. function.php

    i’m having this same problem with the Customizr theme. i’ve created a child theme and made several edits to the stylesheet there, both in the
    Customizr Child: Stylesheet (style.css)
    and in the Edit CSS section.
    i 2 have 2 functions in my child theme functions.php, but i’ve tried removing them and that makes no change to my ability to display themes.php?page=editcss

    WPyogi

    (@wpyogi)

    Forum Moderator

    @halffinn – please post on the Customizr forum – this thread is months outdated and you are not using the same theme –

    http://wordpress.org/support/theme/customizr

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blank page after editing "Theme Functions (functions.php)"’ is closed to new replies.