Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Create child theme
New Landing › How can we help? › Themeforest Theme Support › Dante › Create child theme
- This topic has 20 replies, 4 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Dante
-
October 16, 2015 at 11:57 am #221197
Hi guys,
could you please advise on what I need to do in order to create a child theme of Dante v3.16? I’ve tried creating a directory called dante-child. I’ve placed following files in:
– functions.php
– style.css
– index.phpI then go to my site and enable the child theme and I get a blank white page when I view the home page.
October 16, 2015 at 12:04 pm #221198Hi,
You should check inside the Themeforest files, we already have there an empty child theme.
Copying those files from the parent won’t work.-Rui
October 16, 2015 at 2:55 pm #221254I was provided a dropbox link from Kyle to download version 3.16 and the downloaded file only had the parent theme and no child. Could you provide me with this?
October 16, 2015 at 3:23 pm #221262Hi,
Can’t find it in my files at the moment, already asked a colleague to provide me one.
The child theme never changes between theme updates.In the meantime the child theme is available in the TF files.
When I get the child theme, will check the topic to see if you still need it.
-Rui
October 16, 2015 at 4:09 pm #221272This reply has been marked as private.October 21, 2015 at 2:32 pm #222219Hi Rui,
Thanks for sharing that with me. I’ve downloaded the file and placed it in my
wp-content/themes
directory. I then go into my wordpress site and enable the Child theme. I see no features from Dante Parent theme and when I visit the homepage I still see a blank white screen. There is no PHP errors as I’veWP_DEBUG, true
in mywp-config.php
File.Does it matter that I am attempting to use this child theme on a WordPress Multisite? I’m very confused.
October 21, 2015 at 2:35 pm #222223Can you please provide me with a link and logins o I can look into it for you?
– Kyle
October 21, 2015 at 2:43 pm #222225The site is on my localhost so can’t provide access. It might help if I explain the structure:
I have the Dante Parent Theme installed and it works fine when I enable it. I downloaded Ruis link and it contained the following
– A folder called dante-child which contains 3 files:
- style.css
- functions.php
- screenshot.png
I then enable the child theme on my site and nothing works. I get a blank screen.
style.css only contains:
/* LICENSE & DETAILS ================================================== Theme Name: Dante Child Theme Theme URI: http://dante.swiftideas.net Description: A Retina Responsive Multi-Purpose WordPress Theme - Designed & Developed by Swift Ideas ( www.swiftideas.net ) License: GNU General Public License version 3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html Template: dante Version: 1.0 Author: Swift Ideas Author URI: www.swiftideas.net All files, unless otherwise stated, are released under the GNU General Public License version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html) ================================================== */ /* -------------------------------------------- CHILD THEME CSS -------------------------------------------- */
functions.php contains:
<?php /* * * Dante Functions - Child Theme * ------------------------------------------------ * These functions will override the parent theme * functions. We have provided some examples below. * * */ /* LOAD PARENT THEME STYLES ================================================== */ function dante_child_enqueue_styles() { wp_enqueue_style( 'dante-parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'dante_child_enqueue_styles' ); /* REORDER PRODUCT TABS ================================================== */ function woo_reorder_tabs( $tabs ) { $tabs['description']['priority'] = 25; return $tabs; } add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); /* REMOVE PAGE BUILDER ASSETS ================================================== */ /* * You can uncomment the line below to remove selected assets from the page builder */ // function spb_remove_assets( $pb_assets ) { // unset($pb_assets['parallax']); // return $pb_assets; // } // add_filter( 'spb_assets_filter', 'spb_remove_assets' ); // function sf_blog_aux($width) { // // $blog_aux_output = ""; // $options = get_option('sf_dante_options'); // $filter_wrap_bg = $options['filter_wrap_bg']; // $rss_feed_url = $options['rss_feed_url']; // // // $category_list = wp_list_categories('sort_column=name&title_li=&depth=1&number=10&echo=0&show_count=1'); // $archive_list = wp_get_archives('type=monthly&limit=12&echo=0'); // $tags_list = wp_tag_cloud('smallest=12&largest=12&unit=px&format=list&number=50&orderby=name&echo=0'); // $author_list = wp_list_authors('echo=0'); // // $blog_aux_output .= '<div class="blog-aux-wrap row">'; // open .blog-aux-wrap // $blog_aux_output .= '<ul class="blog-aux-options bar-styling '.$width.'">'; // open .blog-aux-options // // // CATEGORIES // $blog_aux_output .= '<li><a href="#" class="blog-slideout-trigger" data-aux="categories"><i class="ss-index"></i>'.__("Categories", "swiftframework").'</a>'; // // // AUTHORS // $blog_aux_output .= '<li><a href="#" class="blog-slideout-trigger" data-aux="authors"><i class="ss-user"></i>'.__("Authors", "swiftframework").'</a>'; // // // SEARCH FORM // $blog_aux_output .= '<li class="search"><form method="get" class="search-form" action="'. home_url().'/">'; // $blog_aux_output .= '<input type="text" placeholder="'. __("Search", "swiftframework") .'" name="s" />'; // $blog_aux_output .= '</form></li>'; // // // ARCHIVES // $blog_aux_output .= '<li><a href="#" class="blog-slideout-trigger" data-aux="archives"><i class="ss-storagebox"></i>'.__("Archives", "swiftframework").'</a>'; // // // RSS LINK // if ($rss_feed_url != "") { // $blog_aux_output .= '<li><a href="'.$rss_feed_url.'" class="rss-link" target="_blank"><i class="fa-rss"></i>'.__("RSS", "swiftframework").'</a>'; // } // // $blog_aux_output .= '</ul>'; // close .blog-aux-options // $blog_aux_output .= '</div>'; // close .blog-aux-wrap // // $blog_aux_output .= '<div class="filter-wrap slideout-filter blog-filter-wrap row clearfix">'; // open .blog-filter-wrap // $blog_aux_output .= '<div class="filter-slide-wrap col-sm-12 alt-bg '.$filter_wrap_bg.'">'; // // if ($category_list != '') { // $blog_aux_output .= '<ul class="aux-list aux-categories row clearfix">'.$category_list.'</ul>'; // } // if ($author_list != '') { // $blog_aux_output .= '<ul class="aux-list aux-authors row clearfix">'.$author_list.'</ul>'; // } // // if ($archive_list != '') { // $blog_aux_output .= '<ul class="aux-list aux-archives row clearfix">'.$archive_list.'</ul>'; // } // // $blog_aux_output .='</div></div>'; // close .blog-filter-wrap // // // /* AUX BUTTONS OUTPUT // ================================================== */ // return $blog_aux_output; // // } ?>
I’v enabled debugging to rule out PHP errors but thats showing up all clear…
October 21, 2015 at 2:51 pm #222236Hi,
Assuming you have no errors output with debug on, is it just a white screen after child theme activation?
You would likely need to restart MAMP servers.
– David.
October 21, 2015 at 2:53 pm #222238Hi Dave, yes it is. I’ve tried restarting WAMP. I’ve also uploaded to an internal test server but the same white screen is showing…
October 21, 2015 at 2:54 pm #222239Hi,
After activating the child theme you need to assign a new front page and also assign the menus once again. You will only have to do this once.
Also try to increase the memory inside wp-config.php
Change your WordPress memory to 128M or a maximum 256M.
Also check the official documentation from WordPress in the link below.
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP-Rui
October 21, 2015 at 2:57 pm #222241Hi Rui,
I should also mention that when I activate the child theme from the admin dashboard I lose all of the dashboard tabs associated with the parent theme. It’s as if it has no reference to the parent theme at all.
October 21, 2015 at 3:01 pm #222244That’s really strange since it’s referred in the child theme the name of the parent theme.
https://www.dropbox.com/s/7dbrww1qvis4he8/Screenshot%202015-10-21%2015.00.41.png?dl=0Did you changed anything in those parameters inside the style.css of the parent theme(not the one in the child theme)?
-Rui
October 21, 2015 at 3:15 pm #222255Nope, see below: This is the contents at the start of the parent theme
style.css
/* LICENSE & DETAILS ================================================== Theme Name: Dante Theme URI: http://dante.swiftideas.net Author: Swift Ideas Author URI: www.swiftideas.net Description: <strong>A Retina Responsive Multi-Purpose WordPress Theme, Designed & Developed by Swift Ideas</strong> - <a href="http://www.swiftideas.net">www.swiftideas.net</a>. Follow us for update notifications:<br/> <a href='http://twitter.com/swiftideas'>Twitter</a><br/> | <a href='http://www.facebook.com/SwiftIdeas'>Facebook</a> Version: 3.16 License: GNU General Public License version 3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html Tags: translation-ready, threaded-comments, theme-options, sticky-post, post-formats, full-width-template, flexible-header, featured-images, custom-menu, custom-header, custom-colors, custom-background, flexible-width All files, unless otherwise stated, are released under the GNU General Public License version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html) ================================================== */
This is the contents of the child theme
style.css
:/* LICENSE & DETAILS ================================================== Theme Name: Dante Child Theme Theme URI: http://dante.swiftideas.net Description: A Retina Responsive Multi-Purpose WordPress Theme - Designed & Developed by Swift Ideas ( www.swiftideas.net ) License: GNU General Public License version 3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html Template: dante Version: 1.0 Author: Swift Ideas Author URI: www.swiftideas.net All files, unless otherwise stated, are released under the GNU General Public License version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html) ================================================== */
October 21, 2015 at 3:23 pm #222258Hi,
I have just downloaded Rui’s zip file and installed and activated the child theme fine.
This would look to be related to your localhost setup?
– David.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.