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'
-
AuthorSearch Results
-
In forum: Virtue Theme
In reply to: Sidebar on 404
October 23, 2014 at 1:09 pm #20677You 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
In forum: Virtue ThemeAfter 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: *Login to see link
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.phpIn forum: Virtue ThemeIn reply to: Child Theme for Virtue theme
October 21, 2014 at 5:25 pm #20432Hey,
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
In forum: Virtue ThemeIn reply to: Child Theme for Virtue theme
In forum: Virtue ThemeIn reply to: Child Theme for Virtue theme
October 21, 2014 at 10:01 am #20388You 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
In forum: Virtue ThemeIn reply to: Child Theme for Virtue theme
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.
In forum: Virtue ThemeIn reply to: Page content not being displayed – on only one page
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
In forum: Virtue ThemeIn reply to: Child Theme for Virtue theme
Hey, this is a good place to start: http://codex.wordpress.org/Child_Themes
Hannah
In forum: Virtue ThemeTopic: Child Theme for Virtue theme
In forum: Virtue ThemeIn reply to: leave a reply
October 19, 2014 at 9:08 am #202301. 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
In forum: Virtue ThemeOctober 18, 2014 at 4:57 pm #20177Hey,
To make this plugin work you have to use a child theme, I can send you a copy by email, just email me here:Ben
In forum: Virtue ThemeIn reply to: Ad Banner under Main menu
October 16, 2014 at 11:45 am #20016Are 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
In forum: Pinnacle ThemeHi 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
In forum: Pinnacle ThemeOctober 15, 2014 at 2:24 pm #19937So 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
In forum: Virtue ThemeI 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 ThemeIn reply to: topbar modification
October 13, 2014 at 9:21 am #19717Hey,
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
In forum: Virtue ThemeHi 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 ThemeIn reply to: topbar modification
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 ThemeIn reply to: replace google font url
October 12, 2014 at 1:01 am #19640I 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 ThemeIn reply to: replace google font url
October 12, 2014 at 12:32 am #19636If 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
-
AuthorSearch Results


