HTML code in WordPress menu description

Put the below full code and that should work.. <?php class Description_Walker extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { $classes = empty ( $item->classes ) ? array () : (array) $item->classes; $class_names = join( ‘ ‘ , apply_filters( ‘nav_menu_css_class’ , array_filter( $classes ), $item ) ); ! empty ( $class_names ) and $class_names=” … Read more

Trying to update the meta description of the home page

Have you checked your site’s meta description tag? May be, there are more than one meta description tag. That’s why, you are not seeing your preferred description in Google. If it is not the case, then Google might have ignored your preferred meta description. To solve this issue, you have to use a different one.

How to fix a duplicated meta description?

bloginfo(‘description’) just displays the site tagline. ‘description‘ – Displays the “Tagline” set in Settings > General. This data is retrieved from the “blogdescription” record in the wp_options table. https://developer.wordpress.org/reference/functions/bloginfo/#description So yes, it will be the same on every page. WordPress does not add meta descriptions to pages, or have the native capability to do so. … Read more