using part of a theme in another theme

This won’t be an easy or “some clicks” way to archive your goal. In theory, you will need these things to make the portfolio function work: function registers portfolio post type. Template file for that post type. Custom metabox for that post type. – For adding custom fields. Javascript file for handing animations, events… for … Read more

How to call a widget in a loop at a specific iteration value?

You can check what iteration you’re on inside the main loop with $wp_query->current_post while( have_posts() ){ the_post(); the_title(); // count starts at zero, so after 1 will be after 2nd post if( 1 == $wp_query->current_post ){ the_widget( ‘WP_Widget_Recent_Posts’ ); } } Edit Regarding your comment about capturing widget output, you can try PHP output buffering: … Read more

Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme

Your child theme functions.php loads before the parent theme’s, so you’re trying to remove the action before it’s added by the parent theme. Hook after_setup_theme to remove/add, which is executed after both child and parent load. add_action( ‘after_setup_theme’, ‘wpd_wp_head_function’ ); function wpd_wp_head_function() { remove_action( ‘wp_head’, ‘woothemes_wp_head’, 10 ); add_action( ‘wp_head’, ‘woothemes_wp_head’, 2 ); }