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 - 481 through 500 (of 6,404 total)
  • Author
    Search Results
  • #261910

    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 Theme
    #261865

    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 Theme

    In reply to: Icons

    #261805

    Hey,
    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 Theme

    Topic: Icons

    #261704

    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 Theme
    #261676

    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!

    #261577

    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,
    Hannah

    #261575

    Hi, 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.
    Keith

    #261557

    Hey,
    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

    #261514

    Hi 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.

    #261452

    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,
    Karla

    #261406

    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.

    #261311

    Hmm. 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

    #261310

    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,
    Hannah

    #261301

    Hi Hannah-

    I am indeed (re: Child Theme – *always!* – about THE single best piece of WP advice I picked up right at the beginning).

    I’ll give this a try – thanks so much.

    John_

    #261288

    Hey 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,
    Hannah

    #261213

    Hi 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.

    #261160

    Before this content hooks release, the only option we left for now is to override the current post template with child theme?

    #261093

    Hey 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,
    Hannah

    In forum: Kadence Theme
    #261087

    Hey,
    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.5rem

    If 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-4

    Let me know if I can help further.

    Ben

    #261074

    Hey Anita,
    You would need to override this in your child theme. I’ll check with Ben what the exact function is that you’ll need.
    Thanks for your patience!

    Regards,
    Hannah

Viewing 20 results - 481 through 500 (of 6,404 total)