• Hi could someone help me with the child theme? here’s the code i put in for style.css for child theme folder

    /*
    Theme Name: weaver-xtreme-child
    Template: weaver-xtreme
    Theme URI: //weavertheme.com
    Description: Bare minimum Weaver Xtreme Child demo theme
    Author: Bruce Wampler
    Author URI: //weavertheme.com/about
    Version: 1.0
    Tags: light, dark, white, black, gray, one-column, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, photoblogging
    Template: weaver-xtreme

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <https://www.gnu.org/licenses/&gt;.

    About style.css:

    Traditionally, a child theme provides its own style.css to override or extend the
    parent style.css. This usually involved adding an “@import” to the child’s style.css.

    Weaver Xtreme handles the main style sheet differently. It is called “assets/css/style.weaverx.css”,
    and is loaded before the theme “style.css” file. Thus, there is no need to “@import” the
    parent stylesheet.

    So you can make overrides and extensions directly in this child style.css.

    */

    /* ——————————————————
    Add specific style overrides here…

    Just for example, this style will change the default BG Color for the site.
    */
    body,
    input,
    textarea {
    background-color: #CCC;
    }

    and here’s for the functions.php

    <?php
    /**
    * Load the style sheet from the parent theme.
    *
    */
    function theme_name_parent_styles() {
    // Enqueue the parent stylesheet
    wp_enqueue_style( ‘theme-name-parent-style’, get_template_directory_uri() . ‘/style.css’, array(), ‘0.1’, ‘all’ );
    // Enqueue the parent rtl stylesheet
    if ( is_rtl() ) {
    wp_enqueue_style( ‘theme-name-parent-style-rtl’, get_template_directory_uri() . ‘/rtl.css’, array(), ‘0.1’, ‘all’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_name_parent_styles’ );
    ?>

    and when visiting the site there are two active sidebar. Can you show me how to inactive one? Thanks!

Viewing 1 replies (of 1 total)
  • You need to post your questions in the weaver Forum, as this one is not monitored.
    https://forum.weavertheme.com/

    When you do that, you need to explain why you are creating a child theme.
    Weaver Xtreme gives you full control of the sidebar configuration both at a global level in Main Options > Sidebar & Layout, as well as at the page level, with a “select Sidebar Layout for this page” drop down list in every editing page to override the global setting on any given page.

    You do need to make sure you have installed the Weaver Xtreme Theme Support plugin, as most of the options are in the plugin.

    The only reason you would need a child theme is for advanced PHP modification to the templates, but most changes can be achieved through the Theme options, the insertion areas, and Custom CSS possibilities.

    So make sure to explain what you are trying to do so we can advise if you actually need a child theme or not.

Viewing 1 replies (of 1 total)
  • The topic ‘there are two side bar’ is closed to new replies.