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
I’m currently building a database for a theatre using the Pods framework and Virtue Pro theme. I’ve created two new custom post types in Pods (productions and artists) which have multiple relationships (productions have functions/credits, e.g. director, choreographers, etc; artists get 2-way links to “production credits”, thereby building a history of all of the productions that they participated in ). I use the built in Virtue Portfolio post type to build a grid of seasons, with a Pods shortcode to build the list of productions on each portfolio page.
The portfolio and pods CPT’s all use featured images so I can display thumbnails for both the portfilio grid, and for pods-template listings. I’m still fairly early in the development and the system exists only on my localhost, which is MAMP Pro running: WordPress 5.6, PHP 7.3.3 under Apache amd Kadence Virtue Theme 4.9.31 with a child theme.
So far, I’ve noticed two featured images have disappeared from the localhost site. One was on an Artist CPT post that pods created, the other was associated with a Virtue Portfolio post. The featured images are still in the upload directory, but the attachment link in the wp_posts table seems to be gone. They don’t show up in the Media Library either, though static links in page HTML still work.
Any thoughts? I’m posting the same issue with PODS….
In forum: Virtue ThemeTopic: Theme Extensions
Hello Team Kadence!
I’m doing some work on a site and noticed that even with the Portfolio and Woocommerce extension turned off the options for the blocks still show under the Home Layout. Other options appear to be gone (as expected). I was looking at the code and found this for Woocommerce:
$field = Redux::getField( OPTIONS_SLUG, 'homepage_layout' );
unset( $field['options']['disabled']['block_three'] );
unset( $field['options']['disabled']['block_nine'] );
unset( $field['options']['disabled']['block_ten'] );
Redux::setField( OPTIONS_SLUG, $field );But they are still present (I even disabled my child theme, and plugins, and ran just Virtue Premium). Same with the Portfolio extension. Is this a bug/something you can recreate?
In forum: Virtue ThemeIn reply to: Icons
December 17, 2020 at 9:45 am #261805Hey,
In a child theme you can filter the virtue walker class, for example:add_filter( 'nav_menu_css_class', 'custom_filter_out_classes', 11, 4 ); function custom_filter_out_classes( $classes, $item, $args, $depth ) { if( is_array( $classes ) ) { foreach ( $classes as $key => $class ) { if ( strpos( $class, 'fa-' ) !== false ) { unset( $classes[ $key ] ); } } } return $classes; } add_filter( 'walker_nav_menu_start_el', 'custom_filter_add_icon_class', 11, 4 ); function custom_filter_add_icon_class( $item_output, $item, $depth, $args ) { $icon_class = array(); $custom_classes = get_post_meta( $item->ID, '_menu_item_classes', true ); if ( $custom_classes ) { foreach ( $custom_classes as $custom_class ) { if ( strpos( $custom_class, 'icon' ) !== false || strpos( $custom_class, 'kt-icon' ) !== false || strpos( $custom_class, 'fa-' ) !== false ) { $icon_class[] = $custom_class; } } } $atts = array(); $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; $atts['target'] = ! empty( $item->target ) ? $item->target : ''; $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; $atts['href'] = ! empty( $item->url ) ? $item->url : ''; $atts['aria-current'] = ! empty( $item->current ) ? 'page' : ''; $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); $attributes = ''; foreach ( $atts as $attr => $value ) { if ( ! empty( $value ) ) { $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); $attributes .= ' ' . $attr . '="' . $value . '"'; } } if ( ! isset( $args->link_before ) || ( isset( $args->link_before ) && empty( $args->link_before ) ) ) { $args->link_before = '<span>'; $args->link_after = '</span>'; } $title = apply_filters( 'the_title', $item->title, $item->ID ); $title = apply_filters( 'nav_menu_item_title', $title, $item, $args, $depth ); $description = ! empty( $item->description ) ? '<span class="sf-description">' . esc_attr( $item->description ) . '</span>' : ''; $icon = ! empty( $icon_class ) ? '<i class="' . esc_attr( join( ' ', $icon_class ) ) . '"></i>' : ''; // No Description for submenu items. if ( 0 !== $depth ) { $description = ''; } $item_output = $args->before; $item_output .= '<a' . $attributes . '>' . $icon; $item_output .= $args->link_before . $title . $description . $args->link_after; $item_output .= '</a>'; $item_output .= $args->after; return $item_output; }Ben
In forum: Virtue ThemeTopic: Icons
Hello Team Kadence!
I need a bit of help with changing the walker class. Your code has:
$custom_classes = get_post_meta( $item->ID, '_menu_item_classes', true );
if ( $custom_classes ) {
foreach ( $custom_classes as $custom_class ) {
if ( strpos( $custom_class, 'icon' ) !== false || strpos( $custom_class, 'kt-icon' ) !== false ) {
$icon_class = $custom_class;
} else {
$classes[] = $custom_class;
}
}
}If I change the needles, I can get my class to show up, but I can’t seem to get this function to work inside my child theme. I’m using Font Awesome and I changed the code to:
$custom_classes = get_post_meta( $item->ID, '_menu_item_classes', true );
if ( $custom_classes ) {
foreach ( $custom_classes as $custom_class ) {
if ( strpos( $custom_class, 'fab' ) !== false || strpos( $custom_class, 'fa-' ) !== false ) {
$icon_class = $custom_class;
} else {
$classes[] = $custom_class;
}
}
}as a test. It works – but only when I modify the parent theme (which I don’t want to do). Can you help me with this?
FYI: right now, if I put the class as fab fa-facebook-f icon-facebook (as a test) the output is:
<li class=" menu-item-71 menu-item menu-facebook fab fa-facebook-f" aria-hidden="true"><a href="#"><i class="icon-facebook"></i><span>Facebook</span></a></li>
I want ‘fa-facebook-f’ to be part of <i class="icon-facebook"></i>.
Ideally, I’d like it to work like this:
1. If fa-*whatever* is present, use this class.
2. If no fa-*whatever* is present, use icon-*whatever* if present.
3. If both are not present, work as normal.I’m not sure I’m explaining correctly so please ask me any questions you want.
In forum: Virtue ThemeTopic: Yoast Breadcrumbs
Hello Team Kadence!
I can’t seem to get Yoast Breadcrumbs to show up. If I switch to another theme, the breadcrumbs show up fine. I’m using a child theme, but even switching to Virtue Premium only still doesn’t show the breadcrumbs. I saw in the changelog that the theme is supposed to support Yoast. Is there something else I need to enable or do? Thanks!
In forum: Kadence ThemeIn reply to: Renaming Child Theme/Exporting Customised Settings?
Sorry, I mean only your custom functions. Your settings should all be saved onto your database and should be saved upon activating a new child theme. Only your custom functions you would need to manually transfer over. Does this make sense?
Kindly,
HannahIn forum: Kadence BlocksHi, I am currently running WordPress 5.3.6. I have been using Kadence blocks for at least a year now. The other day, I did an update on Kadence Blocks plugin, to version 1.9.9. Now, when I edit any page that include Kadence blocks, I get an insert of message next to the block:
Your site doesn’t include support for the “kadence/advancedheading” block. You can leave tis block intact, convert its content to a Custom HTML block, or remove it entirely.
Of course, the name of the block changes according to what the block is. I also attached a screenshot.
How should I fix this problem? I tried to search the help center but didn’t find anything helpful for this issue.
I am using Virtue Premium theme, Version: 4.9.31, via a child theme.
I realize that the current version of WordPress is 5.6, but because some of the plugins I am using may not be compatible with it, I am holding back on upgrading WordPress.
Thank you for your help.
KeithIn forum: Kadence BlocksIn reply to: Form Block: Form ID, Timestamp, generated email
December 10, 2020 at 11:24 am #261557Hey,
Thanks for writing!I will update to show the time along with the date. That seems like a good add.
I’m not sure adding the time to an email makes sense all emails come in with a timestamp for when they were received, but I can look at adding that.
Just a note about the email, you can override the email template and customize it using a child theme. However that will require you know some PHP and understand email HTML.
Ben
In forum: Kadence ThemeIn reply to: Renaming Child Theme/Exporting Customised Settings?
December 9, 2020 at 11:06 am #261514Hi Hannah, not sure what you mean by manually copying & pasting the customisations over, do you mean in Appearance > Customize?
To answer your question – because I made a typo in it, which makes me look bad! So, is there no way to do this: Is there a way to maybe export the customised settings and import them into another child theme?
Thanks again.
In forum: Kadence ThemeIn reply to: Change the Logo URL in Kadence Theme
Hello M’Lissa,
You can make use of a code snippets plugin to add this code. Another way is to use a child theme and add it to the child theme’s functions.php file.
Hope this helps.
Regards,
KarlaIn forum: Membership ForumsIn reply to: Cross sells cart page bug?
I did! To make sure again, I deactivated everything, including the child theme. But it was still there inside Kadence. Subsequently, I deactivated Kadence theme and activated the default WordPress theme. And that fixed it. It seems to be something within Kadence itself.
In forum: Ascend ThemeHmm. I tried this and nothing seems to have happened. Nothing broken.. but also nothing has changed?
I added that PHP to the functions.php file located inside the Child Theme folder.
Have I missed anything? (I’m assuming the “test” bit is where I enter my own slug (e.g. “customer-feedback” instead?)
John
In forum: Kadence ThemeIn reply to: Renaming Child Theme/Exporting Customised Settings?
Hi,
Thanks for getting in touch! We don’t recommend re-naming your child theme. What is your reason for this?
If you’re wanting to do this I think the simplest way would be to create a new child theme and manually copy and paste your customizations over.Kindly,
HannahIn forum: Ascend ThemeIn forum: Ascend ThemeHey John,
Thanks for reaching out! Are you using a child theme? You can use this function to change the slug:add_action('init', 'kt_filter_testimonial_slug', 1); function kt_filter_testimonial_slug() { add_filter('kadence_testimonial_post_slug', 'kt_custom_testimonial_permalink'); function kt_custom_testimonial_permalink() { return 'test'; } }Does that work for you?
Kindly,
HannahIn forum: Kadence ThemeDecember 2, 2020 at 10:34 am #261213Hi Kadence team.
I created a child theme for a website, but want to rename it. If I rename it, I lose all the settings. Is there a way to maybe export the customised settings and import them into another child theme?
Thanks in advance for your help.
In forum: Kadence ThemeIn reply to: Add Table of Contents Block Before First H2 tag
In forum: Kadence BlocksHey Dave,
Half the time I tested this the link option showed, and the other half it didn’t. Have you tried deactivating your plugins to test if any are conflicting? That may be a good place to start. Can you also tell me what all you’re adding to your child theme?Thanks,
HannahIn forum: Kadence ThemeIn reply to: CSS Grid Framework Kadence
November 30, 2020 at 11:56 am #261087Hey,
Kadence doesn’t use a CSS framework, this is intentional to keep things light.If you want to piggyback on the Kadence Grid CSS classes they are all set in the parent element and set using grid css. It’s super simple and lightweight and not intended to be a framework. If you are used to using a framework you can load one in your child theme if that would make things easier.
grid-cols
^ add to the container and it defines that the container should use grid css along with default row/grid gaps of 2.5remIf you want a 4 column layout that is two columns on tablet and one column on mobile the classes for the parent container would be:
grid-cols grid-sm-col-2 grid-md-col-2 grid-lg-col-4Let me know if I can help further.
Ben
In forum: Pinnacle ThemeIn reply to: Visual Editor widget – title class
-
AuthorSearch Results


