Failure to Apply Class to Anchor Tags

Hello @nitinp544 We’re sorry you encountered this error. Please use this code snippet to fix it. We will fix it in the next update.

/**
 * Add a class to the link
 *
 * @param  array $allowed_tags the allowed tags.
 * @return array
 */
function wcv_allow_class_to_link( $allowed_tags ) {
	$allowed_tags['a']['class'] = true;
	return $allowed_tags;
}

add_filter( 'wcvendors_allowed_html_tags', 'wcv_allow_class_to_link' );

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer