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: Ascend Theme
In reply to: Pre-use question for ascend for Ben probably
August 16, 2019 at 3:00 pm #233619Thank you Ben! That’s awesome. Pages other than the home page will only have the logo (a different one, see attached) and not the text box below that. Can you have a different logo on the home page or should I build that first logo into that box only?
I don’t know but I’m assuming this is a child theme thing where the php will change or something? Php is my next hurdle.
Thank you,
Luke
In forum: Ascend ThemeAnonymousAugust 15, 2019 at 2:17 pm #233470Hi
I am using yoast breadcrumbs and have added the following to my functions.php in my child theme:
add_action('kt_afterheader', 'custom_breadcrumbs_add');
function custom_breadcrumbs_add(){
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<div class="container"><p id="breadcrumbs">','</p></div>');
}
}But that only seems to affects products.
To get the breadcrumbs working on my pages, I have added the following to page.php
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
?>And I cannot get it to work on blog posts at all.
Question – is there code I can add to functions.php that will show breadcrumbs on products, posts AND pages? Or is adding it in separate places the right way to go?
If so, can you advise which file I need to add code to in order for breadcrumbs to show up on my posts?
Finally, to style them, do I just need to add the following to my css (or is it a different class)?
.breadcrumbs {
<style>
}Many thanks
DomIn forum: Virtue ThemeIn reply to: Always display mobile menu
The css is not working because you’re using the simple mobile header. There isn’t a way to get the simple mobile header on desktop without coding this into a child theme. Try disabling the simple mobile header from your theme options and keep the css enabled. Let me know how it works for you.
Hannah
In forum: Virtue ThemeIn reply to: downloaded Virtue now site is blue
In forum: Virtue ThemeAugust 6, 2019 at 12:33 pm #232571Hey,
I don’t suggest you do this, but since you feel comfortable editing the php hopefully that means you know JS as well.JS files are not templates file and you don’t treat them the same way at all.
You have to enqueue your js files through a custom function in your child theme functions files: https://developer.wordpress.org/reference/functions/wp_enqueue_script/
You need to remove the classes from your custom header template so that it doens’ interfere with the core theme JS that is designed to power the header which will mean you need to write custom css for your custom header from the ground up. Then you need to enqueue your own js file for your child theme that will run your sticky header however you are intending to run it.
Ben
You guys helped me with some custom functions a while back. I’ve been placing them in the parent Virtue theme for years but I finally decided to try out the child theme created by Kadence Themes.
Unfortunately one function works but the other doesn’t.
custom_woocommerce_archive_title_link_start works but custom_kad_woocommerce_image_link_open doesn’t.
Any insight would be appreciated. Thanks in advance!
function custom_shop_functions(){
function custom_kad_woocommerce_image_link_open() {
global $product;
if($product->product_type == 'external') {
$link = $product->get_product_url();
} else {
$link = get_the_permalink();
}
echo '<a href="'.esc_url( $link).'" class="product_item_link product_img_link">';
}
add_action( 'woocommerce_before_shop_loop_item_title', 'custom_kad_woocommerce_image_link_open', 5 );
remove_action( 'woocommerce_before_shop_loop_item_title', 'kad_woocommerce_image_link_open', 5 );function custom_woocommerce_archive_title_link_start() {
global $product;
if( $product->product_type == 'external' ) {
$link = $product->get_product_url();
} else {
$link = get_the_permalink();
}
echo '<a href="'.esc_url( $link ).'" class="product_item_link product_title_link">';
}
add_action( 'woocommerce_shop_loop_item_title', 'custom_woocommerce_archive_title_link_start', 7 );
remove_action( 'woocommerce_shop_loop_item_title', 'virtue_woocommerce_archive_title_link_start', 7 );}
add_action('init', 'custom_shop_functions');
In forum: Virtue ThemeI believe the only way to achieve this is to use a child theme. Are you currently using one? https://www.kadencewp.com/child-themes/
Hannah
In forum: Membership ForumsIn reply to: Virtue: Blog image gallery in the header
I followed the advice here:
*Login to see link
but nothing changed.Do I need to edit the css somehow (I have never done this). I am using a child theme.
In forum: Virtue ThemeIn reply to: Featured image not displayed anymore
August 1, 2019 at 12:08 pm #232266Your child theme is overriding the template for single posts. It’s not using the current action calls (although they will be correct in the next update) so that is why the posts are not working.
Because custom post types don’t have the same meta box options that you can get in normal post types we’ve unhooked the check for the post head options from custom post types. That created an issue where if you had set the blog post default to image it would show on custom post types.
That “issue” you were counting on. But to make the whole thing better I’m adding the custom post type settings so that you can turn on the featured image and the setting it seperate from blog posts.
Ben
In forum: Virtue ThemeIn reply to: How to upgrade latest version theme
July 30, 2019 at 12:53 pm #232104Hey,
What version of the theme are you using?Also, that notice is saying you are using a child theme, you control child theme templates are you overriding templates in your child theme? If so you need to update them.
Ben
In forum: Virtue ThemeHi ,
I have upgraded wordpress and woocommerce latest version in my site.
Now woocommerce saying below error message
Your theme (Virtue Premium Child Theme) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce.
Please check and help asap.
In forum: Virtue ThemeIn reply to: Featured image not displayed anymore
I did.
In the parent theme, the featured image is shown in a standard blog post but not in a custom post type.In the the child theme, the featured image is neither shown in the custom post types nor in the standard blog posts.
https://signalwald.ch/helloworld/So I guess before looking into the custom types, I should get the standard blog posts fixed. I hope this will solve the problem with the other types as well.
I don’t see what could have affected the standard blog posts. Any idea what file is most likely to cause this based on my child theme files?In forum: Virtue ThemeIn reply to: Featured image not displayed anymore
In forum: Virtue ThemeHello,
Since the last update (not sure if WP or template as I updated both at the same time), the featured images are not shown anymore in my child-theme -> example. I’m only using custom post types but I quickly created and previewed a standard post, which also doesn’t display the featured image. Any hint what I could do in order to investigate and solve this?
Thanks
In forum: Membership ForumsJuly 26, 2019 at 2:07 am #231791Hi,
I have just migrated from using a normal WP theme to using Elementor Pro + Hello Child Theme. I have bought your membership package for its excellent Woocommerce support, however I don’t get the expected behaviour on the product categories pages in that they don’t filter and display the chosen catergory only.
Please see *Login to see link and then click on one of the categories – an unfiltered product page is all I can seem to achieve.
If I use the default Woocommerce page it works correctly (but obviously does not look like I want it to).
How do I make this page display the filtered product list including a title at the top showing the category name?
I am happy to send you access to my WP admin if it helps…
Kind regards
PaulIn forum: Pinnacle ThemeHi-
I know this is an option for Virtue, but is there a way to have the logo and menu centered with the menu underneath in Pinnacle?
We’re not using the shrink header or transparent header option.
I would normally switch to Virtue, but there’s been a lot of customization in our child theme with Pinnacle.
Thank you very much as always!
In forum: Pinnacle ThemeIn reply to: Add input field for pagination
July 22, 2019 at 4:38 pm #231512In your child theme functions.php file add this:
<?php function my_custom_wp_pagenavi() { global $wp_query, $wp_rewrite; $pages = ''; $max = $wp_query->max_num_pages; if (!$current = get_query_var('paged')) $current = 1; $args['base'] = str_replace(999999999, '%#%', get_pagenum_link(999999999)); $args['total'] = $max; $args['current'] = $current; $args['show_all'] = true; $total = 1; $args['mid_size'] = 3; $args['end_size'] = 1; $args['prev_text'] = '«'; $args['next_text'] = '»'; if ($max > 1) { echo '<div class="scroller-status"><div class="loader-ellips infinite-scroll-request"><span class="loader-ellips__dot"></span><span class="loader-ellips__dot"></span><span class="loader-ellips__dot"></span><span class="loader-ellips__dot"></span></div></div>'; echo '<div class="wp-pagenavi">'; } if ($total == 1 && $max > 1) echo paginate_links($args); if ($max > 1) { echo '</div>'; } }Then in your child theme copy archive.php into it, replace this section:
if(function_exists('kad_wp_pagenavi')) { kad_wp_pagenavi(); }to this:
if(function_exists('my_custom_wp_pagenavi')) { my_custom_wp_pagenavi(); }Ben
In forum: Pinnacle ThemeIn reply to: Add input field for pagination
In forum: Pinnacle ThemeIn reply to: Add input field for pagination
July 22, 2019 at 2:03 pm #231493Hey,
There isn’t an option for this within WordPress pagination functions which is what the theme is using. I also don’t know of any plugin that adds an input. It would be possible with some custom child theme to make all the numbers show.Ben
-
AuthorSearch Results



