Help! I altered PHP and now my domain won't load. (3 posts)

  1. mattdavid70
    Posted 2 years ago #

    I changed "parts/class_content_slider.php" from having this:

    $slide_background = wp_get_attachment_image( $id, $img_size, array( 'class' => 'slide' , 'alt' => $alt ) );

    To having this:

    "><?php echo wp_get_attachment_image( $id, $img_size, array('class' => 'slide', 'alt' => $alt ) ); ?>

    Now I only get the homepage in all white. http://www.usccru.com Help!

  2. Dave Naylor
    Posted 2 years ago #

    Can't you just change it back, or did you edit the file in the built in WordPress editor. If you did, you'll need to access your site via SSH or FTP to fix your mistake.

    Once you've done that, learn the lesson of never, ever live editing a site again.

  3. wiresplus
    Posted 2 years ago #

    Your mistake looks to be the > at the start of your code. should be <?php echo wp_get_attachment_image( $id, $img_size, array('class' => 'slide', 'alt' => $alt ) ); ?>

    BTW, use the little 'Code' button to post code, as it works better for everyone :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.