Home › Forums › Weaver Xtreme Theme › Split: Weaver Xtreme 5 and Child Themes › Reply To: Split: Weaver Xtreme 5 and Child Themes
Did some more testing. Downloaded the settings from the theme and uploaded them to the subtheme (tried both the complete and limited settings), removed all settings before downloading, Didn’t help (menu consisted of “home”, default headerimage with mountains). I created the child theme as instructed, by copying the themes folder and then renaming it. As a test I added a second child theme. Same result. Both children display in the live view the complete menu but with the default headerimage.
I added code to the php file. The code worked. Result:
<?php
if ( ! defined( ‘ABSPATH’ ) ) {
exit;
} // Exit if accessed directly
/* This is the main function.php override file – it controls most of the stuff happening with the theme */
/* Anything you need to actively do, put here. This is the first code that will get run whenever the
child theme is activated and used. This example just re-defines a function, but you could do anything.
*/
function weaverx_continue_reading_link() {
/* very simple example – override the read more text… */
$msg = ‘[CLICK TO READ MORE]’;
return ‘ ‘ . $msg . ‘‘;
}
/* Added by Victor: (removed extra emtpy lines only here)
add_action(‘check_admin_referer’, ‘logout_without_confirm’, 10, 2);
function logout_without_confirm($action, $result) {
/**
* Allow log out without confirmation
*/
if ($action == “log-out” && !isset($_GET[‘_wpnonce’])) {
$redirect_to = isset($_REQUEST[‘redirect_to’]) ?
$_REQUEST[‘redirect_to’] : ”;
$location = str_replace(‘&’, ‘&’, wp_logout_url($redirect_to));;
header(“Location: $location”);
die();}
}