The dreaded White Screen of Death
-
Ho hum, it never rains but it pours.
After a minor addition to my child functions.php, I now have the dreaded White Screen of Death. If someone can bail me out, I would be eternally grateful. If not, I’ll mow the lawn.
Here’s what I was doing…
Using @nikeo’s spiffing snippet to replace a slider call to action link with a custom URL (an anchor on the same page as the slider), I adapted it slightly by inserting “#anchor” instead of the full URL. Could this innocent piece of shorthand be the cause of my meltdown?
The only other liberty I took was to link my slider button to a page which no longer exists in my menu, even though it still shows up in the slider image dropdown list of URL links. I assumed it wouldn’t matter since the snippet overwrites that URL anyway.
But one, or both, of my actions have incurred the wrath of God. Unfortunately, I can’t get any of my site pages to load from history and nor can I access my dashboard.
Is there a cure?
These are the snippet instructions:
You will need to replace the following texts in the snippet by your values :
MY-IMAGE-ID => this is the WordPress id of the slider’s image for which you need to set the custom link. You can easily find it in the permalink of your media, on the edit screen.
MY-CUSTOM-URL => this is your custom link. Ex : http://www.mywebsite.com
…and here’s the php:
add_filter('tc_slide_link_url' , 'my_slide_custom_link', 10, 2); function my_slide_custom_link( $slide_link , $image_id ) { //does nothing if the image's id is not the targeted one if ( MY-IMAGE-ID != $image_id ) return $slide_link; //sets a custom url for the targeted slide return 'MY-CUSTOM-URL'; }
- The topic ‘The dreaded White Screen of Death’ is closed to new replies.