-
AuthorPosts
-
August 27, 2015 at 9:44 am #371292
Hi,
Been trying to find this solution among the many with the Revolution Slider, but I don’t see it: I added a slider to my Child Theme’s function.php and then my whole site went blank, including no WP admin bar, no menus, no source code, no nothing.
I’d like to walk back my error, but I can’t find any way to do that if I can’t actually see my site or its admin panel.
The site is http://northriverreno.com/ and I have the most recent versions of WordPress, X and Revolution Slider plugin (I’d like to tell you exactly which versions those would be, but again, I have nothing but a blank screen).
Thank you,
AlexAugust 27, 2015 at 1:22 pm #371457Hello There,
Thanks for writing in!
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
August 27, 2015 at 2:01 pm #371504This reply has been marked as private.August 27, 2015 at 8:44 pm #371769Hi There,
Thanks for the details in regards to your file permission denied in fileZilla, you can contact your host about changing the file permision.
In regards to the white screen, A white screen usually means there is a fatal PHP error. Can you please enable WP_DEBUG mode? You can do this by opening
wp-config.php
and adding
define( 'WP_DEBUG' , true );
just above/* That's all, stop editing! Happy blogging. */
For example:define('WP_DEBUG', true); /* That's all, stop editing! Happy blogging. */
When you revisit the page with the white screen, you should have some error output describing the issue in more detail.
Please let us know how it goes.
Thanks.
August 28, 2015 at 8:14 am #372217Thank you — I knew exactly what code had caused the problem, but I couldn’t get to it. I was able to change my own permissions and remove the revolution slider embed code, which I had put into my child theme’s functions.php and everything is back to normal.
Still can’t figure out how to place a hero image below the masthead, but that’s a question for another thread, I guess.
August 28, 2015 at 2:56 pm #372464Hi there,
Glad you’ve sorted out the revolution slider issue. Regarding hero image, would you mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Thanks!
August 29, 2015 at 12:52 pm #373098I’m trying to do something like this: http://www.lisacchamberlain.com/
Just place a hero image under the nav bar and above the content on the homepage. It doesn’t have to be a Revolution Slider; in fact, I don’t want any animation on it so I’d rather it were a widget. But placing that in the well content seemed harder than working with a Revolution Slider, so I tried the easier route.I’ve been able to fix the errors I made before, and now understand how to walk back any changes I make going forward that don’t work. But the problem is that I can’t make any changes at all without getting the fatal PHP error that makes my whole site go blank. I mean, I can’t even put in // descriptive text without causing problems.
Even copying any new code or files from the X theme into the X Child Theme causes this error. So I haven’t been able to truly set up the Child theme because I can’t put anything there.
I think I’m totally missing something on using Child Themes.
August 29, 2015 at 10:21 pm #373272Hello There,
Sorry but we were not able to check your child theme functions.php file. Please double check the username and password given. If it’s possible, please post the contents of your functsions.php file so that we can figure out why it is throwing an error message.
Please let us know how it goes.
August 30, 2015 at 11:10 am #373593I don’t know why the username and password aren’t working for you; they work perfectly fine for me. But there isn’t anything to see in there. Right now it’s a pristine, out-of-the-box functions.php file with no modifications. The problem is when I add anything to it. So my real question is understanding, when code is suggested for adding, say, a revolution slider, where does it actually go, and in what particular format. For example, Revolution Slider tells me to do this:
To add the slider only to homepage use: <?php putRevSlider(‘heroimage’, ‘homepage’); ?>But where would I put that code? And would it really have the <?php part on it or the ?> ? Because no matter where I place that code or in what format, it creates the white screen that I have learned is from a fatal php error.
August 30, 2015 at 4:46 pm #373773Hi there,
The modification you wanted is more on template related than function. In that case, you should apply your modification inside the template of your target place.
Example, under navbar. Then it should be at /wp-content/themes/x/framework/views/global/views/_nav-primary.php. Don’t edit it directly, instead move that file to your child theme of same folder structure (eg. /wp-content/themes/x-child/framework/views/global/views/_nav-primary.php ) then apply your changes.
About
<?php ?>
, it really depends. You may want to check php coding standard 🙂Cheers!
-
AuthorPosts