Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: child don't work #22147

    easyjet
    Participant

    sorry an add: we preferred to make it “fresh”. Now we have just cancelled the child folder and we have loaded new from your installation folder in Themefroest. It doesn’t work.

    I try to explain it better:

    if you go on themeforest, upload the child theme folder and activate it it doesn’t work.

    We have trried to analyze it with a plugin called “Child Theme Configurator version 2.1.2”

    and it says:

    Warning:  require_once(/home/qb20w2ae/public_html/domains/studiolegaleidotta.it/wp-content/themes/dallas-child/includes/customizer.php): failed to open stream: No such file or directory in /home/qb20w2ae/public_html/domains/studiolegaleidotta.it/wp-content/themes/dallas/includes/functions.php on line 106

     

    Fatal error:  require_once(): Failed opening required ‘/home/qb20w2ae/public_html/domains/studiolegaleidotta.it/wp-content/themes/dallas-child/includes/customizer.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in /home/qb20w2ae/public_html/domains/studiolegaleidotta.it/wp-content/themes/dallas/includes/functions.php on line 106

    so there is something wrong with the files you provide us via Themeforest.

    Would you please let us which is your suggest? With all the other themes we download by Themeforest it’s just enough to copy and paste the child theme folder and it works properly.

    Thanks

    Bye!

    in reply to: child don't work #22146

    easyjet
    Participant

    dear Usuhuu,

    we don’t know how you checked the function.php in the theme child. Since you don’t have the ftp access.

    Anyway we tried as you kindly suggested: we have created a function.php in the includes folder into the child theme. Something work now. But something is still wrong: the shortecodes don’t work. To make it easy for you, I gonna include in this reply the text of the include’s function.php file:

    <?php

     

     

     

    // change default settings for default gallery

    add_action( ‘after_setup_theme’, ‘stride_attachment_display_settings’ );

    function stride_attachment_display_settings() {

    update_option( ‘image_default_link_type’, ‘file’ );

    }

     

     

     

     

    // Print custom styles

    add_action(‘wp_head’, ‘print_theme_styles’, 1024);

    function print_theme_styles(){

    global $post;

     

    $custom_css = TT::get_mod(‘custom_css’);

    $custom_css .= TT::get_mod(‘custom_css_tablet’) != ” ?    ‘@media (min-width: 768px) and (max-width: 985px) { ‘ . TT::get_mod(‘custom_css_tablet’) . ‘ }’ : ”;

    $custom_css .= TT::get_mod(‘custom_css_widephone’) != ” ? ‘@media (min-width: 481px) and (max-width: 767px) { ‘ . TT::get_mod(‘custom_css_widephone’) . ‘ }’ : ”;

    $custom_css .= TT::get_mod(‘custom_css_phone’) != ” ?     ‘@media (max-width: 480px) { ‘                        . TT::get_mod(‘custom_css_phone’) . ‘ }’ : ”;

     

    $logo = TT::get_mod(‘logo’);

    $logo_style = !empty($logo) ? “#header #logo{ background-image:url($logo) !important; }” : “”;

     

    $custom_styles = ”;

    $header_bg_image = TT::get_option_bg_value(‘header_bg_image’);

     

    $custom_styles .= !empty($header_bg_image) ? ” #header.menu-full-bg{ $header_bg_image } ” : ”;

     

    echo “<style type=’text/css’ id=’theme-customize-css’>

    $logo_style

    $custom_styles

    $custom_css

    #loader-container{

    position: fixed;

    top: 0px;

    left: 0px;

    width: 100%;

    height: 100%;

    z-index: 9999;

    background-color: rgba(255,255,255,0.96);

    opacity: 1;

    visibility: visible;

    -webkit-transition: all 0.25s ease;

    -moz-transition: all 0.25s ease;

    transition: all 0.25s ease;

    }

    #loader-container.loaded{

    opacity: 0;

    visibility: hidden;

    }

    #loader-container .loader-inner{

    position: absolute;

    top: 50%;

    left: 50%;

    -webkit-transform: translateX(-50%) translateY(-50%);

    -moz-transform: translateX(-50%) translateY(-50%);

    transform: translateX(-50%) translateY(-50%);

    }

    #loader-container .loader-inner > div{

    background-color: #b23763;

    }

    </style>”;

     

    }

     

     

     

     

     

    /*

     

    _____ _                 _              _____ _

    |_   _| |_ ___ _____ ___| |_ ___ ___   |     | |___ ___ ___ ___ ___

    | | |   | -_|     | -_|  _| . |   |  |   –| | .’|_ -|_ -| -_|_ -|

    |_| |_|_|___|_|_|_|___|_| |___|_|_|  |_____|_|__,|___|___|___|___|

     

    */

     

    // Less Compiler

    require_once get_template_directory() . ‘/framework/classes/class.less.php’;

     

    // Meta fields for Posts

    require_once get_template_directory() . ‘/framework/classes/class.render.meta.php’;

     

    // WP Customizer

    require_once get_template_directory() . ‘/framework/classes/class.wp.customize.controls.php’;

    require_once get_template_directory() . ‘/framework/classes/class.wp.customize.php’;

     

    // Import functions

    require_once get_template_directory() . ‘/framework/functions/functions.for.theme.php’;

    require_once get_template_directory() . ‘/framework/functions/functions.breadcrumb.php’;

     

    // Import Demo Data

    require_once get_template_directory() . ‘/framework/classes/class.import.data.php’;

     

     

     

     

    // Import Widgets

    require_once get_template_directory() . ‘/includes/widgets/init_widget.php’;

     

    // Customizer

    require_once get_template_directory() . ‘/includes/customizer.php’;

    // TGM Plugin Activation

    require_once get_template_directory() . ‘/includes/plugins.php’;

     

    // Quick Load Element for VC

    require_once get_template_directory() . ‘/includes/meta.page.php’;

    require_once get_template_directory() . ‘/includes/meta.user.php’;

    require_once get_template_directory() . ‘/includes/ExtendVCRow.php’;

     

    // Import Template tags

    require_once get_template_directory() . ‘/includes/template-tags.php’;

     

    // Woocommerce

     

     

     

     

    // Import VC Custom Elements

    if( function_exists(‘vc_map’) ){

    $file_dir =  get_stylesheet_directory().’/includes/vc-elements/’;

    foreach( glob( $file_dir . ‘*.php’ ) as $filename ) {

    require_once $filename;

    }

    }

     

     

    ?>

Viewing 2 posts - 1 through 2 (of 2 total)