Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Search Results for 'child theme'

Home / Forums / Search / Search Results for 'child theme'

Viewing 20 results - 5,901 through 5,920 (of 6,404 total)
  • Author
    Search Results
  • In forum: Virtue Theme

    In reply to: Sidebar on 404

    #20677

    You would have to add a custom function in a child theme or a functions plugin. You intend on people seeing a 404 page often?

    here is the function:

    add_filter('kadence_display_sidebar', 'kad_sidebar_on_404_page');
    function kad_sidebar_on_404_page($sidebar) {
    if (is_404()) {
        return true;
      }
      return $sidebar;
    } 

    Ben

    #20473

    After upgrade to Virtue 2.2.5 and WooCommerce 2.2.7, I am seeing the following errors in system report. Please can you advise a solution. Thanks

    I am a registered customer of Virtue Premium but the site below has Virtue at the moment.

    Theme Name: Virtue
    Theme Version: 2.2.5
    Theme Author URL:
    Is Child Theme: No
    WooCommerce Support: Yes

    ### Templates ###

    Template Overrides (WooCommerce):virtue/woocommerce/archive-product.php
    virtue/woocommerce/cart/cart-totals.php
    virtue/woocommerce/cart/cart.php
    virtue/woocommerce/cart/cross-sells.php
    virtue/woocommerce/cart/shipping-calculator.php
    virtue/woocommerce/checkout/thankyou.php version 2.0.0 is out of date. The core version is 2.2.0
    virtue/woocommerce/content-product.php
    virtue/woocommerce/content-product_cat.php
    virtue/woocommerce/content-single-product.php
    virtue/woocommerce/loop/add-to-cart.php
    virtue/woocommerce/loop/loop-end.php
    virtue/woocommerce/loop/loop-start.php
    virtue/woocommerce/loop/no-products-found.php
    virtue/woocommerce/loop/orderby.php version 2.0.0 is out of date. The core version is 2.2.0
    virtue/woocommerce/loop/pagination.php version 2.0.0 is out of date. The core version is 2.2.2
    virtue/woocommerce/loop/price.php
    virtue/woocommerce/loop/rating.php
    virtue/woocommerce/loop/result-count.php
    virtue/woocommerce/loop/sale-flash.php
    virtue/woocommerce/order/form-tracking.php
    virtue/woocommerce/order/order-details.php version 2.1.0 is out of date. The core version is 2.2.0
    virtue/woocommerce/single-product/add-to-cart/external.php
    virtue/woocommerce/single-product/add-to-cart/grouped.php
    virtue/woocommerce/single-product/add-to-cart/simple.php
    virtue/woocommerce/single-product/add-to-cart/variable.php
    virtue/woocommerce/single-product/price.php
    virtue/woocommerce/single-product/product-image.php
    virtue/woocommerce/single-product/product-thumbnails.php
    virtue/woocommerce/single-product/rating.php
    virtue/woocommerce/single-product/review.php
    virtue/woocommerce/single-product/sale-flash.php
    virtue/woocommerce/single-product/share.php
    virtue/woocommerce/single-product/short-description.php
    virtue/woocommerce/single-product/tabs/additional-information.php
    virtue/woocommerce/single-product/tabs/description.php
    virtue/woocommerce/single-product/tabs/tabs.php
    virtue/woocommerce/single-product-reviews.php
    virtue/woocommerce/single-product.php
    virtue/woocommerce/taxonomy-product_cat.php
    virtue/woocommerce/taxonomy-product_tag.php

    #20432

    Hey,
    Not a functions file a template file: “you can edit the virtue_premium/templates/comments.php file. like 54.”

    So you would add a folder called templates to your child theme, then copy the file “comments.php” from the parent theme and place in the child theme, templates folder.

    Then change the code.

    Ben

    #20427

    Hi Ben,

    In my request to change ‘leave a reply’ to ‘leave your condolence message here’.

    Your gave me an instruction to create a child theme with some coding for a function file.

    #20388

    You can download an example child theme here: https://www.kadencewp.com/wp-content/uploads/2014/02/virtue_premium_child.zip

    1. you don’t need any of those functions. Just remove it all from the functions file.

    2. What are you trying to do? why are you building a child theme?

    Ben

    #20376

    thanks Hannah, I have created a child theme with the instructions on that site listed above, however, it is not working properly.
    I am not understanding the functions.php file. this is what i have in the file. I am pretty sure that it is not right.

    <?php

    add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_styles’, PHP_INT_MAX);
    function enqueue_child_theme_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array(‘parent-style’) );
    }

    The child theme is virtue_premium_child

    Should I be changing something within this code.

    #20375

    Hi Ben,

    Thanks for the tip. I renamed the page/link so it does not start with a number and it now at least displays the page – however I’m now getting a Woo error when I try to add back in a product gallery.

    If I add this to the page:

    [product_category category="qfhd-4k-monitors" per_page="20" columns="4" orderby="order" order="asc"]

    I get this error when I try to update the changes:

    Fatal error: Call to undefined function woocommerce_product_loop_start() in /home/pixeluti/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php on line 182

    The page Previews OK, I just can’t update it?

    I use the exact same code with a different category on other pages so again I’m not sure what is wrong with just this page.

    I’m running Woo v2.2.6, WP 3.9.2 and Virtue Premium 2.6.7 with a child theme.

    Any pointers on this error?

    Many thanks for your help

    Steve

    #20368

    Hey, this is a good place to start: http://codex.wordpress.org/Child_Themes

    Hannah

    #20367

    Hi,
    Can you tell me how to create a child theme from my website.

    In forum: Virtue Theme

    In reply to: leave a reply

    #20230

    1. You can use this css:

    .comment .media-body {
    font-size: 14px
    }

    2. Only though a child theme, you can edit the virtue_premium/templates/comments.php file. like 54.

    Ben

    #20177

    Hey,
    To make this plugin work you have to use a child theme, I can send you a copy by email, just email me here:

    [email protected]

    Ben

    In forum: Virtue Theme
    #20016

    Are you wanting this in the header or in the page?

    If in the header you can choose the logo layout that adds a widget area beside the log and you can add any widget there.
    If in a page you can add using page builder.

    Else if you want below the header and you don’t want to use an image you would need to add through the code like with a child theme.

    Ben

    #19952

    Hi Ben,

    Thanks so much for that, it worked perfectly across the main pages of the site. I saved the code you wrote into the child-theme’s functions.php file and the slider worked strait away 🙂

    It’s not showing on the portfolio pages though. These pages are just showing a white background in the header area at the moment… I am looking through the options panel for a setting that I may have overlooked. But can the function you wrote be tweaked so the home slider shows on portfolio pages too?

    Thanks again Ben, I really appreciate your help.

    Josh

    #19937

    So I’ve been thinking, If you want the home slider to appear on every page I have a pretty easy solution, Make sure you have the latest version 1.0.8 and using a functions plugin or child theme add this function:

    add_action('kt_header_overlay', 'kt_slider_overlay');
    
    function kt_slider_overlay() {
    	 ob_start(); ?>
    
    <div class="kt-slider-header-overlay sliderclass">
    <?php $pinnacle = get_option( 'pinnacle' );  putRevSlider( $pinnacle['rev_slider'] ); ?>
    <?php if(isset($pinnacle['header_slider_arrow']) && $pinnacle['header_slider_arrow'] == 1) {
            echo '<div class="kad_fullslider_arrow"><a href="#kt-slideto"><i class="kt-icon-arrow-down"></i></a></div>';
          }?>
    </div><!--sliderclass-->
    <div id="kt-slideto"></div>
    <?php $output = ob_get_clean();
    echo $output;
    }

    You can get a functions plugin here: https://wordpress.org/plugins/custom-functions/

    Ben

    #19788

    I just noticed that my gallery suddenly doesn’t work as it used to. I can’t make it work like the Standard gallery on your demo-page anymore.
    I have not made any modifications in the settings for Theme-Options.

    WP 4.0, Virtue Premium 2.6.7 with a child theme (no modifications in child theme made in the last 5 months)

    Any idea what happened?

    In forum: Virtue Theme

    In reply to: topbar modification

    #19717

    Hey,
    For your set up the file name is header.php in the templates folder. you would create a templates folder in your child theme and add the header.php file to it 🙂

    Ben

    #19673

    Hi everyone,

    I have made several changes in Virtue Theme using a child theme in order to modify HTML tag to have a correct hierarchy.

    header.php in templates directory at line 23 to have my description to be site title (because I’m using an image as site title)
    <H1 class="kad_tagline belowlogo-text"><?php echo $virtue_premium['logo_below_text']; ?></H1>

    blog-home.php in templates/home directory at line 56 to have a correct hierarchy with home layout manager + last blog posts (H3 last blog posts title and H4 for blog title instead of H5)
    <a href="<?php the_permalink() ?>"><h4 class="entry-title"><?php the_title(); ?></h4></a>

    portfolio-carousel.php in templates/home directory at line 115 to have a correct hierarchy with home layout manager + portfolio carousel (H3 portfolio carousel title and H4 for portfolio title instead of H5)

    BUT

    I don’t manage to modify H4 tag (I want it to be H2) of Virtue: Info Box widget that I add to home widget area and home layout manager. Even if I modify icon-menu.php at line 21
    <?php if ($icon['title'] != '') echo '<h2>'.$icon['title'].'</h2>'; ?>

    Is that the correct file to modidy? Thanks for your help

    In forum: Virtue Theme

    In reply to: topbar modification

    #19661

    Ben now I noticed that when I place this css

    .headerclass > .container {
    display:none;
    }

    the secondary menu disappears from mobile view. I’d like to edit the php file instead of adding some extra css code. I know what to erase but I don’t know how can I override the old .php file in the child theme. The file name is I reckon header-style-three.php and is in /templates folder.

    In forum: Pinnacle Theme
    #19640

    I get your issue, that is why I wrote the answer I did? You can’t just change the url. It’s not created in a way that works like that. Your best to follow the advice I gave and use a child theme.

    Ben

    In forum: Pinnacle Theme
    #19636

    If you need to load an external font file you should add your font css in a child theme and set your theme option fonts to a standard web font. It’s a complex php function that creates the google font url but it only loads if you have selected google fonts in the theme options. So go through all your typography settings throughout the theme options, make sure they are all set to a standard web font. Then in a child theme or in a plugin add the css with the font you want to load and your own css to force that font to be used like:

    h1 {font-family: mycustomfont !important;}

    Ben

Viewing 20 results - 5,901 through 5,920 (of 6,404 total)