WordPress.org

Forums

Fruitful
[resolved] Site slightly turns (6 posts)

  1. Ivan Denikin
    Member
    Posted 1 year ago #

    I changed php code in header.php (without back-up). I don't remeber what line was it.
    Then my site became in 1 row. You can see it here
    Help to bring it back, pls.

  2. Ivan Denikin
    Member
    Posted 1 year ago #

    There is header.php code

    <?php
    /**
    * The Header for our theme.
    * Displays all of the <head> section and everything up till <div id="main">
    * @package WordPress
    * @subpackage Fruitful theme
    * @since Fruitful theme 1.0
    **/
    ?><!DOCTYPE html>
    <!--[if IE 7]><html class="ie ie7" <?php language_attributes(); ?>><![endif]-->
    <!--[if IE 8]><html class="ie ie8" <?php language_attributes(); ?>><![endif]-->
    <!--[if !(IE 7) | !(IE 8) ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <?php fruitful_metadevice(); ?>
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php fruitful_get_favicon(); ?>
    <!--[if lt IE 9]><script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script><![endif]-->
    <?php wp_head(); ?>
    </head>
    <body <?php
    $additional_body_classes = '';
    if (class_exists('Woocommerce')) {
    if (is_shop()) { $additional_body_classes .= 'shop-page '; }
    }
    $theme_options = fruitful_ret_options("fruitful_theme_options");
    if (isset($theme_options['responsive']) && ($theme_options['responsive'] == 'on')) {
    $additional_body_classes .= 'responsive ';
    }
    body_class(trim($additional_body_classes));
    ?>>
    <div id="page" class="hfeed site">
    <div class="head-container">
    <div class="container">
    <div class="sixteen columns">
    <header id="masthead" class="site-header" role="banner">
    <?php
    if (fruitful_is_social_header()) {
    fruitful_get_socials_icon();
    } 
    
    $logo_pos_class = $menu_pos_class = '';
    $options = fruitful_get_theme_options();
    $logo_position = $options['logo_position'];
    $menu_position = $options['menu_position'];
    
    $logo_pos_class = fruitful_get_class_pos($logo_position);
    $menu_pos_class = fruitful_get_class_pos($menu_position);
    ?>
    
    <div data-originalstyle="<?php echo $logo_pos_class; ?>" class="header-hgroup <?php echo $logo_pos_class; ?>">
    <?php echo fruitful_get_logo(); ?>
    </div>	
    
    <div data-originalstyle="<?php echo $menu_pos_class; ?>" class="menu-wrapper <?php echo $menu_pos_class; ?>">
    <?php fruitful_get_languages_list(); ?>
    
    <?php if (class_exists('Woocommerce')) { ?>
    <?php if (!empty($theme_options['showcart'])) {
    if (($theme_options['showcart']) == 'on'){?>
    <div class="cart-button">
    <a>" class="cart-contents">
    <div class="cart_image"></div>
    <span class="num_of_product_cart"><?php global $woocommerce;
    echo $woocommerce->cart->cart_contents_count; ?> </span>
    </a>
    </div>
    <?php } ?>
    <?php } ?>
    <?php } ?>
    
    <nav role="navigation" class="site-navigation main-navigation">
    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    </nav><!-- .site-navigation .main-navigation -->
    </div>
    </header><!-- #masthead .site-header -->
    </div>
    </div>
    </div>	
    
    <div class="container page-container">
    <?php do_action( 'before' ); ?>
    <div class="sixteen columns">
  3. I changed php code in header.php (without back-up).

    That's the main reason why you're encouraged to create and activate child themes. It's safe than editing the original theme files.

    http://codex.wordpress.org/Child_Themes

    If you visit http://wordpress.org/themes/fruitful then you can download an unedited copy of that theme and re-install it.

    Make sure you make a full backup of your WordPress installation first in case there's other things you've changed. ;)

  4. Ivan Denikin
    Member
    Posted 1 year ago #

    I re-install it, but it looks same http://m-prava.ru

  5. Ivan Denikin
    Member
    Posted 1 year ago #

    Lol, now i cannot login to wordpress
    For exmaple:
    http://m-prava.ru/wp-admin/themes.php

  6. Ivan Denikin
    Member
    Posted 1 year ago #

    It's ok now

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags