Anil Ankola
Forum Replies Created
-
Forum: Plugins
In reply to: [Add Custom Body Class] 1.4 creates broken front endHello,
Function defined if WooCommerce isn’t installed. and update latest code.
Forum: Plugins
In reply to: [Add Custom Body Class] Body class not added to Woocommerce shop pageHi, @josvelasco
PHP Fatal error is resolved and update latest code.
Forum: Plugins
In reply to: [Add Custom Body Class] 1.4 creates broken front endHi, @paullacey
in 1.3 plugin version is fine but Custom Body Class not displayed in WooCommerce shop page and 1.4 plugin version display the Custom Body Class in WooCommerce shop and WP blog post page.
Forum: Plugins
In reply to: [Add Custom Body Class] Body class not added to Woocommerce shop pageHi, @alfy40
A body class has been added to the WooCommerce shop page with new released plugin code.
So, please update plugin and Thanks for suggestion.Thank you for using this plugin.
Forum: Plugins
In reply to: [Add Custom Body Class] Multisite support?Hi,
Yes, This plugin is compatible with WordPress Network Multisite.
Thanks!
Forum: Plugins
In reply to: [Contact Form 7] Email Attachment Not ReceiveHello Team,
My contact page EN language all data receive in email but FR language file attachment not receive.
FR Language Page Link : https://nautika.litmusbranding.in/fr/contact/
EN Language Page Link : https://nautika.litmusbranding.in/contact/Thanks in advance.
Forum: Developing with WordPress
In reply to: How to add custom taxonomy in custom post type permalink?hi @sadmansh
Please use cpt code and custom taxonomy code in functions.php
////////////////////////////////// Create Asset Custom Post Type ////////////////////////////////// function create_the_asset_posttype() { $labels = array( 'name' => _x( 'Asset', 'Post Type General Name', 'YOUR_TEXT_DOMAIN' ), 'singular_name' => _x( 'Asset', 'Post Type Singular Name', 'YOUR_TEXT_DOMAIN' ), 'menu_name' => esc_html__( 'Asset', 'YOUR_TEXT_DOMAIN' ), 'parent_item_colon' => esc_html__( 'Parent Asset', 'YOUR_TEXT_DOMAIN' ), 'all_items' => esc_html__( 'All Asset', 'YOUR_TEXT_DOMAIN' ), 'view_item' => esc_html__( 'View Asset', 'YOUR_TEXT_DOMAIN' ), 'add_new_item' => esc_html__( 'Add New Asset', 'YOUR_TEXT_DOMAIN' ), 'add_new' => esc_html__( 'Add New', 'YOUR_TEXT_DOMAIN' ), 'edit_item' => esc_html__( 'Edit Asset', 'YOUR_TEXT_DOMAIN' ), 'update_item' => esc_html__( 'Update Asset', 'YOUR_TEXT_DOMAIN' ), 'search_items' => esc_html__( 'Search Asset', 'YOUR_TEXT_DOMAIN' ), 'not_found' => esc_html__( 'Not Found', 'YOUR_TEXT_DOMAIN' ), 'not_found_in_trash' => esc_html__( 'Not found in Trash', 'YOUR_TEXT_DOMAIN' ), ); $args = array( 'label' => esc_html__( 'asset', 'YOUR_TEXT_DOMAIN' ), 'description' => esc_html__( 'Asset', 'YOUR_TEXT_DOMAIN' ), 'labels' => $labels, 'supports' => array( 'title','editor','thumbnail'), 'taxonomies' => array( 'genres' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 100, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'query_var' => true, 'show_admin_column' => true, 'capability_type' => 'post', 'rewrite' => array('slug' => 'asset/%campaign%'), ); register_post_type( 'asset', $args ); } add_action( 'init', 'create_the_asset_posttype', 0 ); ////////////////////////////////// Custom Post Type Texonomies ////////////////////////////////// function create_the_asset_taxonomy() { register_taxonomy( 'campaign', //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces). 'asset', //post type name array( 'hierarchical' => true, 'label' => 'Categories', //Display name 'query_var' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'asset') ) ); } add_action( 'init', 'create_the_asset_taxonomy');
Asset Post Type Single Link Add Category Slug Function put in functions.php
function wpa_course_post_link( $post_link, $id = 0 ){ $post = get_post($id); if ( is_object( $post ) ){ $terms = wp_get_object_terms( $post->ID, 'campaign' ); if( $terms ){ return str_replace( '%campaign%' , $terms[0]->slug , $post_link ); } } return $post_link; } add_filter( 'post_type_link', 'wpa_course_post_link', 1, 3 );
Forum: Fixing WordPress
In reply to: how to change colour of headerhi @dsj1972
please use this CSS code in your style.css fileheader.entry-header h1.entry-title { color: #7FFF00; }
Forum: Fixing WordPress
In reply to: How to add multiple values in a custom post type and displayHi, @mridulcse
please use advance custom field plugin
Forum: Developing with WordPress
In reply to: How to add CSS “current” class to tags list?Hi, @trishahdee
Please use this code
if condition b tag add “cuurnt” class
Follow code link here
- This reply was modified 5 years, 4 months ago by Anil Ankola.
- This reply was modified 5 years, 4 months ago by Anil Ankola.
- This reply was modified 5 years, 4 months ago by Anil Ankola. Reason: link share for tag
Forum: Fixing WordPress
In reply to: Pop up needs to stopThis code put in style.css
Forum: Fixing WordPress
In reply to: Pop up needs to stophi, @rsmets
css code used on your website
first is popup dialog box is hide and second is mini popup subscribe form fixed to top positionForum: Fixing WordPress
In reply to: Design search results are messed uphi, @vihara
your search result issue solved after css code put in style.css
Forum: Developing with WordPress
In reply to: Adding a different header to a page templatePlease try this code and called header-inside
<?php /* Template Name: Full width */ get_header(inside); ?>
Forum: Fixing WordPress
In reply to: Pop up needs to stop