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 - 981 through 1,000 (of 6,404 total)
  • Author
    Search Results
  • #234967

    Hi, I want to remove an action in my child theme:

    remove_action( ‘woocommerce_before_main_content’, ‘kt_woo_product_breadcrumbs’, 20 );

    I have tried this:

    add_action( ‘init’, ‘remove_my_action’);
    function remove_my_action() {
    remove_action( ‘woocommerce_before_main_content’, ‘kt_woo_product_breadcrumbs’, 20 );
    }

    But it doesn’t work. I have seen this function and action is inside another function/action. I don’t know if this affects.

    Can you help me?

    Thank you.

    #234844

    BTW – I know this isn’t specifically a Kadence block bug, but the originally issue I was reporting earlier in this thread about the move handles being obscured still poses an issue for Kadence users. I originally thought my workaround was fine. But for some reason my config doesn’t appear to be working now. Not sure what changed this week or if I accidentally was confused with changes I was making in Chrome dev tools vs. the external style sheet. But the following no longer appears to be working for me:

    I looked over documentation and it seems to validate this approach: https://developer.wordpress.org/block-editor/developers/themes/theme-support/

    I have a child theme active and I’ve verified the child theme functions.php is loading successfully. I stripped it down to just the following to try to isolate the issue:

    <?php
    function generate_child_setup() {
        add_theme_support('editor-styles');
        add_editor_style('block-editor.css');
    }
    add_action('after_setup_theme', 'generate_child_setup');

    Both the functions.php and block-editor.css file are in the root of my child theme folder.

    The only content of the block-editor.css file is a single CSS rule:

    .edit-post-layout__content {padding-left:25px !important;}

    However, it doesn’t seem like the block-editor.css is getting loaded when editing a post.

    My end goal is to add 25px of padding to the left of the content.

    Thanks for any help you can pass along.

    #234762

    Hey,
    There isn’t a setting in woocommerce for this, with a child theme you can add this function:

    add_filter( 'woocommerce_continue_shopping_redirect', 'custom_change_continue_shopping' );
     
    function custom_change_continue_shopping() {
       return wc_get_page_permalink( 'shop' );
    }

    Ben

    #234679

    Hey,
    Thanks!

    I see the issue with the table, I will get a theme update out that fixes.

    For now you can use this css in your theme options > custom css:

    .wp-block-table.is-style-stripes tr:nth-child(even) {
        background: transparent;
    }

    In regards to settings in the list block, themes have nothing to do with that. My guess is that on your other site you just need to update the plugin.

    Ben

    #234664

    Yes – this is a Gutenberg issue. Any outreach you can provide to the core development team would be appreciated. There’s also a bug in the copy/paste via keyboard. It includes a classic editor block whenever you paste. Here’s a temporary workaround for the hidden move handles for blocks in full width containers/rows:

    Place the following in your child theme functions.php:

    /*Sets up block editor style sheet*/
    function addBlockEditorStyles() {
    	  // Add support for editor styles.
    	  add_theme_support( 'editor-styles' );
      
    	// Enqueue editor styles.
    	add_editor_style( 'block-editor.css' );
    }
    add_action( 'after_setup_theme', 'addBlockEditorStyles' );

    And then the following in the a block-editor.css file you create in your child theme’s root folder:

    /*allows space to show full width block move handles*/
    
    .edit-post-layout__content {padding-left:25px !important;}

    Reference: https://richtabor.com/add-wordpress-theme-styles-to-gutenberg/

    2019-08-29-08-35-31-Edit-Page-City-of-Bellingham-Word-Press

    #234566

    Hey,
    Both would go into your child theme functions.php file, you should never edit the parent theme and there isn’t any reason to edit the template because it’s a filter you can hook in.

    Ben

    #234510

    Hey,
    1. I suggest if you are going to use that many images in your product that you either change the layout so the thumbnails are below the large image (you can do this in the theme options > product options).

    Or that you use Kadence Woo Extras and enabled the product gallery. That would allow you have a carousel for the thumbnails instead of a list (which is woocommerce default).

    There are not options for two-column thumbnail list.

    2. If you are using Yoast SEO then you can assign a “primary” category. that is automatically looked for and selected when creating breadcrumbs.

    Else the fall back is to simply pull from the deepest category. So assign a deeper child category if you want to change it.

    Ben

    #234486

    Hey,
    If you would like to add a sidebar (it’s off by default for events query) then in a child theme you can add this code:

    add_filter( 'kadence_display_sidebar', 'custom_tribe_sidebar', 20 );
    function custom_tribe_sidebar( $sidebar ) {
    	if ( tribe_is_event_query() ) {
    		return true;
    	}
    	return $sidebar;
    }

    If you want to assign the sidebar for that events query you can use this function in a child theme:

    add_filter( 'kadence_sidebar_id', 'custom_sidebar_for_tribe_event_query' );
    function custom_sidebar_for_tribe_event_query( $sidebar ) {
    if ( tribe_is_event_query() ) {
     $sidebar = 'sidebar1';
    }
    return $sidebar;
    }

    Ben

    In forum: Ascend Theme

    In reply to: ASCEND CHILD THEME

    #234455

    Hi Kanon,
    You can download from here: http://www.kadencewp.com/child-themes/

    Hannah

    In forum: Ascend Theme
    #234408

    Good evening-

    Where do I locate the child theme for the Ascend Theme?

    Thank you

    #234402

    ok, You wrote this:

    My images are all sized the same when I upload them as the “Featured Image”

    But it’s important to clarify that your images are not the same size at all.

    Two examples:

    https://www.keepingussafe.org/wp-content/uploads/2019/08/mic-e1566837825473.jpg
    https://www.keepingussafe.org/wp-content/uploads/2019/08/Annual-Eye-Exam.jpg

    So if you want to try and force a crop to your images then you would need to add a function into a child theme:

    add_action('init', 'custom_child_init');
    function custom_child_init() {
     add_filter('kadence_blog_grid_image_height', 'custom_grid_fixed_height');
    function custom_grid_fixed_height($height) {
    return 364;
    }
    }

    You can download an empty child theme here: https://www.kadencewp.com/child-themes/

    Ben

    #234097

    Hey Thomas,
    You can see from the notice: virtue_premium_child/woocommerce/emails/admin-new-order.php

    That shows that your child theme folder virtue_premium_child contains another folder named woocommerce and inside that emails and inside that admin-new-order.php

    You would just need to remove the file and the notice would go away. However, I don’t know why you copied that into your child theme. So it’s possible you are intentionally overriding the file to add or edit something. In which case you need to update the file version and contents to align with the current version of WooCommerce.

    Does that make sense?

    Ben

    In forum: Ascend Theme
    #234015

    Hey,
    There isn’t a subtitle option within the theme settings. You would have to code that into the theme template using a child theme and overriding the template content-loop-portfolio.php

    You can change next project to whatever you like using a plugin like this: https://wordpress.org/plugins/say-what/

    Ben

    #233993

    Hey,
    That file is in your child theme. Not the Virtue Premium theme.

    Child themes are controlled by you, anything you add in them you have to monitor and update when needed.

    Ben

    #233992

    I just updated WooCommerce to 3.7. After updating it has this line in affected templates

    virtue_premium_child/woocommerce/emails/admin-new-order.php version 3.5.0 is out of date. The core version is 3.7.0,

    I also have the most current Virtue Theme Version: 4.9.15

    I did a search and only found one on an earlier version but did not find a response to the post.

    I am also current on WordPress 5.2.2 running Virtue – Premium Child theme.

    Thanks Tom

    In forum: Virtue Theme
    #233941
    This reply has been marked as private.
    In forum: Virtue Theme
    #233902

    Hey,
    Can you send a link? Also are you using a child theme?

    Ben

    #233807

    We do have an override for this specific page template in our child theme, but it was a copy of the page.php template that led to a different endpoint.

    That would still change how the sidebar is calculated. You have to use filters to setup your sidebar if you’re going to create a custom template.

    For example in your child theme:

    function kad_sidebar_on_custom_page_template( $sidebar ) {
    if ( is_page_template( 'page-copy.php' ) ) {
       return true;
    }
    return $sidebar;
    }
    add_filter('kadence_display_sidebar', 'kad_sidebar_on_custom_page_template');
    #233805

    For the past week or so we cannot get the sidebar to show on this page I double checked the Page Options and they are set to show the sidebar. The odd part is that pages with the same settings are still showing the sidebar like here We do have an override for this specific page template in our child theme, but it was a copy of the page.php template that led to a different endpoint.

    #233757

    I found a workaround but this is not the right solution.

    Anyway, in Theme options/language settings/ Post Author BY text and Post Category POSTED IN, erased default text and left them empty.

    Then in themes/virtue_premium/templates I edited entry-meta-subhead.php and added the supposed text in position

    like this:

    <?php
    /**
     * Meta Sub Head
     *
     * @package Virtue Theme
     */
    
    ?>
    <div class="subhead">
    	<?php
    	do_action( 'virtue_before_post_meta_subhead' );
    	if ( '1' === virtue_premium_get_option( 'hide_author' ) ) {
    		$authorbytext = virtue_premium_get_option( 'post_by_text', __( 'By', 'virtue' ) );
    		?>
    		<span class="postauthortop author vcard">
    			<i class="icon-user2"></i>
    			<?php echo esc_html( $authorbytext ) . ' '; ?>
    			<span itemprop="author"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" class="fn" rel="author"><?php echo esc_html( get_the_author() ); ?></a></span>
    			<span class="virtue-meta-divider post-author-divider"> | </span>
    		</span>
    		<?php
    	}
    	if ( '1' === virtue_premium_get_option( 'hide_postedin' ) && has_category() ) {
    		$incattext = virtue_premium_get_option( 'post_by_text', __( 'Posted in: ', 'virtue' ) );
    		?>
    		<span class="postedintop">
    			<i class="icon-drawer"></i>
    			<?php
    			echo esc_html( $incattext ) . ' ';
    			the_category( ', ' );
    			?>
    		</span>
    		<span class="virtue-meta-divider post-category-divider kad-hidepostedin"> | </span>
    		<?php
    	}
    	if ( '1' === virtue_premium_get_option( 'hide_commenticon' ) ) {
    		?>
    		<span class="postcommentscount">
    			<a href="<?php the_permalink(); ?>#virtue_comments">
    				<i class="icon-bubbles"></i>
    				<?php comments_number( '0', '1', '%' ); ?>
    			</a>
    		</span>
    		<?php
    	}
    	do_action( 'virtue_after_post_meta_subhead' );
    	?>
    </div>
    

    of course, I did it three times and only in the child themes.

    This fixed the issue temporarily, But I believe that there are problems with the theme that should be fixed…

    After all it is a premium theme!

Viewing 20 results - 981 through 1,000 (of 6,404 total)