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

    If anyone is curious how the custom fields in the staff posts turned out in the child theme, here’s a link to the page online now. I ended up placing the kanji & title at the front of the name for better responsive layout when the page gets narrow. The user selects the title from a popup on the Staff post backend and the title and associated kanji get pulled in by the template.

    http://traditional-karate.com/about/internationally-certified-karate-instructors/

    #16722

    Ben,
    I have turned on the Virtue theme Blog Option to “Show Date with posts?” and I like the way this makes some of our blog pages look like this one…

    I am also using a blog post page to create a lengthy list of article summaries. On this page I will use the published date to sort the articles by date order but do NOT want the date field to be visible. The article date is also referenced in the citation summary as you can see on this page…

    Is there a way to turn off the display of the date the blog post was “published” on individual posts AND specific blog post pages? I thought I could create an edited page-blog-no-date.php file in a child theme but could not figure out where the date info in pulled in.

    Thanks
    Mike

    In forum: Virtue Theme

    In reply to: bug ?

    #16547

    Yes I am.

    I should also say I am using a child theme

    #16506

    I made changes in my child theme. Is that the problem?

    #16445

    Great thanks Ben!

    I’ll give that a shot. That may help me add other custom items too once I get the hang of modifying the metaboxes. Using custom fields was pretty easy in the child template files. I didn’t know how/where to filter the metaboxes without breaking things in the back-end to make more integrated fields.

    What I was initially thinking was to add a custom field with a rank name in text: like Sensei, Sempai etc. (A pop-up list would be even cooler though). Then in the child theme template I’d use that name to pull up a kanji image as a title background and print the rank name over it using the same text/font as the person’s name.

    I should be able to figure out how to do that from what you posted above.

    On a related note, what would I change to do the same thing to hook into the page metaboxes, if I wanted to do the same type of modification on normal pages? Would I edit this line to use ‘page’ post type?
    ‘pages’ => array( ‘staff’, ), // Post type

    Thanks!

    #16442

    So I’m guessing you want an image upload meta box. Here is the code that you would add to your child theme functions file:

    add_filter( 'cmb_meta_boxes', 'kt_custom_metaboxes' );
    function kt_custom_metaboxes( array $meta_boxes ) {
    
    	// Start with an underscore to hide fields from custom fields list
    	$prefix = '_kt_';
    
    	$meta_boxes[] = array(
    				'id'         => 'kanji_rank_meta',
    				'title'      => __( "Kanji Rank", 'virtue' ),
    				'pages'      => array( 'staff', ), // Post type
    				'context'    => 'normal',
    				'priority'   => 'high',
    				'show_names' => true, // Show field names on the left
    				'fields' => array(
    					array(
    						'name' => __( "Kanji Rank Image", 'virtue' ),
    						'desc' => __( "This will go above the staff Image", 'virtue' ),
    						'id'   => $prefix . 'kanji_rank',
    						'type' => 'file',
    					),
    				)
    			);
    		return $meta_boxes;
    }

    Then in the front end where the staff show you can call that image using this php script, just add right above the call for the staff feature image:

    <?php global $post; $kanji_rank = get_post_meta( $post->ID, '_kt_kanji_rank', true ); 
    if(!empty($kanji_rank)) {echo '<img src="'.$kanji_rank.'" alt="kanji rank">'; }?>

    Ben

    #16440

    Here’s a link to the old static HTML site that I’m in the process of rebuilding in WordPress with a child theme. I’m working on the new site offline for now though, so I can’t post the new URL yet. I’ve got the child theme staff page formatted similar to the old static page now with the photo to the left and the bullets to the right. What I want to add now though is the custom rank/kanji text/image above each photo. If the staff post type included custom fields I could do it pretty easily like I’ve done it on my pages to add a kanji image behind the page tile, much like is seen at the top of this old static page as well.

    http://Traditional-Karate.com/about/instructors.html

    #16437

    Use a plugin for remarking codes or use a child theme, I recommend a plugin that uses the wp_footer action to call the script. .. something like: https://wordpress.org/plugins/insert-headers-and-footers/
    For analytics you can use the theme built in option. Just add your id to the box in the theme options > advanced settings.

    Ben

    #16435

    Hi Ben,

    Yes, I am using a child theme.

    I’m currently using a custom field on the pages to add an image url that I’ve added for kanji that is displayed behind the page titles in my child theme.

    I’d like to use a similar method to add a “rank” field to the staff items (karate instructors), so that my child theme could display a rank title above each staff image, which I’ve already modified to display to the left of the staff_info in a single column staff grid format.

    #16433

    Not a built in one, you can hook into it with a child theme. You would then have to edit the output template too.

    What are you wanting to add? The way the items show on the front you can add almost anything right into the content.

    Ben

    #16387

    1. It’s a little tricky to do, and with a shrink header I can’t say I recommend this but here you go add all this css to your custom css box in the theme options:

    body.single-post.wide #wrapper.container {
    width: 100% !important;
    padding: 0!important;
    box-sizing: content-box;
    }
    body.single-post.stickyheader .is-sticky #kad-banner {
    width: auto;
    left: auto;
    }
    @media (min-width: 768px) {
    body.single-post.wide #wrapper.container {
    width: 750px; !important;
    padding: 0 15px !important;
    }
    }
    @media (min-width: 992px) {
    body.single-post.wide #wrapper.container {
    width: 970px; !important;
    padding: 0 15px !important;
    }
    }
    @media (min-width: 1200px) {
    body.single-post.wide #wrapper.container {
    width: 1170px !important;
    padding: 0 15px !important;
    }
    }

    2.
    .kad-sidebar {
    border-left: 1px solid #aaa;
    }

    3. You can set the hover options in the theme options > menu settings.
    If you want a border here is the css:

    #nav-main ul.sf-menu > li {
    border-right: 1px solid #eee;
    }
    #nav-main ul.sf-menu > li:last-child{
    	border: none;
    }

    Ben

    In forum: Virtue Theme
    #16333

    You can create a child theme, but it will make no difference if your not planning to edit theme files. All the theme options are stored in the database.

    The import/export is only for the theme options, it will only import/export the theme options settings but not the content. Good to have a copy of that though.

    If you want to do a full website transfer I recommend using this plugin: https://wordpress.org/plugins/duplicator/

    Ben

    #16289

    I am just starting to use virtue, upgrading from free. I am building a new site on a spare domain before moving it to my main site.
    Would you recommend using a child theme?
    Thanks

    In forum: Virtue Theme
    #16277

    You can add this to your child theme functions file… if you don’t have a child there here is an empty one:
    https://www.kadencewp.com/wp-content/uploads/2014/02/virtue_premium_child.zip

    Here is the function overrides:

    global $kt_custom_menu;
    remove_filter( 'wp_setup_nav_menu_item', array( $kt_custom_menu, 'kt_add_nav_fields' ) );
    remove_action( 'wp_update_nav_menu_item', array( $kt_custom_menu, 'kt_update_nav_fields'), 10, 3 );
    remove_filter( 'wp_edit_nav_menu_walker', array( $kt_custom_menu, 'kt_edit_admin_walker'), 10, 2 );

    Ben

    #16218

    Apparently you just uploaded this site from local? Because when you did it doens’t look like you did it where all the url strings where changed. All your image files point to localhost instead of your domain.

    as for the footer css… you have:

    @media (min-width: 1212px) {
    .boxed #wrapper.container {
    width: 1212px;
    }

    and you didn’t close the media query so all css after is inside that query.. add a bracket to close.

    And one more thing, it’s better if your child theme folder name doesn’t have spaces.
    Ben

    #16216

    Can you post a link?

    Are you using a child theme, to do this it would have to be a change in template files.
    Ben

    In forum: Virtue Theme

    In reply to: Child Theme Download

    #16126

    1. That is your menu, which is not part of the theme options and not saved as part of the theme options. All you would have to do is go to your menus page and assign the menus you have created the the topbar menu area and the primary menu area.

    Ok, got it working again now. Still strange, that I need to reassign the menu settings after changing to a (technically identical) child theme.

    2. You don’t need this: @import url(“../virtue_premium/style.css”);
    You can do it if you want just means your loading an empty css file so I don’t see why you would want to. The theme is set up to load all the css when a child theme loads, making so you don’t have to use the slowing @import

    The official documentation at http://codex.wordpress.org/Child_Themes says so 😉 Anyway, thanks for the pointer, I removed the @import now.

    In forum: Virtue Theme

    In reply to: Child Theme Download

    #16112

    Hey,
    1. That is your menu, which is not part of the theme options and not saved as part of the theme options. All you would have to do is go to your menus page and assign the menus you have created the the topbar menu area and the primary menu area.

    2. You don’t need this: @import url(“../virtue_premium/style.css”);
    You can do it if you want just means your loading an empty css file so I don’t see why you would want to. The theme is set up to load all the css when a child theme loads, making so you don’t have to use the slowing @import

    Ben

    In forum: Virtue Theme

    In reply to: Child Theme Download

    #16109

    This is what my site’s front page looks with Virtue premium: https://seacloud.cc/f/9e6064056b/
    This is what it looks like after enabling my Virtue child theme: https://seacloud.cc/f/263cc73986/

    You’ll notice that the menu at the top right site is now missing.
    Also the link at the top left named “Mein Konto” (meaning “My account”) is now gone.

    How can I restore these settings after enabling my child theme? Is it simply a settings export before enabling the theme and then importing afterwards?

    My child currently just consists of only these settings (but more customizations and templates are to come):

    $ cat style.css 
    /*
     Theme Name:   XXX Child Theme
     Theme URI:    https://bitbucket.org/XXX/child-theme
     Description:  Diverse Anpassungen an Theme u.a.
     Author:       XXX
     Author URI:   https://www.XXX.de
     Template:     virtue_premium
     Version:      0.0.1
     Tags:         virtue, child, theme
     Text Domain:  XXX-child-theme
    */
    
    @import url("../virtue_premium/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    
    /* XXX, 2014-04-12: Shop Header nicht anzeigen, wenn Shop gleich Startseite */
    .home .page-header {
        display: none;
    }
    
    /* XXX, 2014-05-27: Sortierungsmenü auf Shop rechts oben nicht anzeigen */
    .woocommerce-ordering {
        display: none;
    }
    
    /* XXX, 2014-05-27: "Anzeige: Alle 5 Ergebnisse" nicht anzeigen unterhalb der Shop-Überschrift */
    .woocommerce-result-count {
        display: none;
    }
    
    /* XXX, 2014-05-27: Kreuz für Aus Warenkorb Entfernen soll schwarz sein */
    .woocommerce table.cart a.remove, .woocommerce-page table.cart a.remove, .woocommerce #content table.cart a.remove, .woocommerce-page #content table.cart a.remove {
        color: black;
    }
    In forum: Virtue Theme

    In reply to: Child Theme Download

    #16093

    Your previous settings are not lost? Not sure what you mean? If you are using a child theme then all settings are stored in the database.
    The link you posted has to do with a very old version of the theme that doesn’t apply anymore.
    Ben

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