WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mattdavid70
    Member
    Posted 7 months 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
    Member
    Posted 7 months 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
    Member
    Posted 7 months 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 :)

Reply

You must log in to post.

About this Topic

Tags

No tags yet.