woocommerce product category tabs [closed]

If you mean ‘tabs’ as in the way WooCommerce presents the Product Description, Attributes, and Review on the product page then take a look at the template files for WooCommerce. You can find them at ../wp-content/plugins/woocommerce/templates. There’s a good article on customizing the templates at http://wcdocs.woothemes.com/codex/template-structure/ You need to follow these guidelines to make sure … Read more

Change the name of the wp_editor tab “html/text”

Filter gettext_with_context and change the name here: <?php # -*- coding: utf-8 -*- /* Plugin Name: Rename ‘Text’ editor to ‘HTML’ */ add_filter( ‘gettext_with_context’, ‘change_editor_name_to_html’, 10, 4 ); function change_editor_name_to_html( $translated, $text, $context, $domain ) { if ( ‘default’ !== $domain ) return $translated; if ( ‘Text’ !== $text ) return $translated; if ( ‘Name … Read more

Tabbed content with Pagination

Ok solved, I managed to run a query for each post as a WP_Query instead as Brasofilo pointed out. Then built in the custom pagination via wordpresses help rather than WP_navi as this would not split into sections on one page. As Follows is my new query :- <?php $cat_id = get_query_var(‘cat’); $limit = get_option(‘posts_per_page’); … Read more

Disable the “Skip to Toolbar” tabbing accessibility feature

It’s not possible without JavaScript. The HTML for it is output in the WP_Admin_Bar in a private and protected method with no filter. You can remove them after the page has loaded with JS like so: function wpse_287259_remove_skip_link() { echo “<script>jQuery( ‘.screen-reader-shortcut’ ).remove();</script>”; } add_action( ‘wp_after_admin_bar_render’, ‘wpse_287259_remove_skip_link’ ); I hope it goes without saying that … Read more

Display meta box on front end

Use this code $schema_group = rwmb_meta( ‘schema_group’ ); $schema_knvb = isset( $schema_group[‘schema_knvb’] ) ? $schema_group[‘schema_knvb’] : ”; echo $schema_knvb; for more detail check the “Meta Box Group” page on the plugin documentation https://metabox.io/docs/meta-box-group/#section-how-to-get-meta-value-of-a-sub-field

Shortcode insertion in tab

Sounds like you need to wrap your shortcode contents in ob_start()and return ob_get_clean() require_once(dirname(__FILE__).’/post-type.php’); //file that registers CPT function wporg_shortcodes_init(){ function wporg_shortcode($atts = []) { extract( shortcode_atts( array( ‘term’ => ‘columns’ ), $atts ) ); $custom_taxonomy = $atts[‘term’]; ob_start(); // <- works like magic // add query of custom post type board_members $recentPosts = new … Read more

Move WooCommerce product tabs out of the tabs [closed]

It turned out that woocommerce_get_template() was deprecated and replaced by wc_get_template(). I solved this by adding this to my functions.php. add_action( ‘woocommerce_after_single_product_summary’, ‘removing_product_tabs’, 2 ); function removing_product_tabs(){ remove_action(‘woocommerce_after_single_product_summary’,’woocommerce_output_product_data_tabs’, 10 ); add_action(‘woocommerce_after_single_product_summary’,’get_product_tab_templates_displayed’, 10 ); } function get_product_tab_templates_displayed() { wc_get_template( ‘single-product/tabs/description.php’ ); wc_get_template( ‘single-product/tabs/additional-information.php’ ); comments_template(); }