Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #12917

    According to this topic concerning HTML in NEWSCAST’s menus: (Purchase code hidden if logged out) -description

    I’ve tried to find a solution, so that I can display HTML in the main menu descriptions of CORONA, too – for example <b> <br />

    But the file structure at FTP is somehow others than at the NEWSCAST theme.

    I’ve added this

    remove_filter('nav_menu_description', 'strip_tags');
    add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' );
    function cus_wp_setup_nav_menu_item($menu_item) {
    $menu_item->description = apply_filters( 'nav_menu_description', $menu_item->post_content );
    return $menu_item;

    to functions.php, but this causes, that HTML is not “executed”, just shown as normal text at the frontend.

    So, this is not enough of editing files.

    Kriesi wrote here about another file to change concerning NEWSCAST, but I haven’t found such at CORONA’s files: (Purchase code hidden if logged out) -description

    Could you please tell me, how to add this possibility to CORONA, too?



    no idea?


    Hi colorit2,

    I tagged Kriesi on the topic hoping he would be able to address while going through his queue. Unfortunately I’m not sure how to make the changes for Corona as it uses a newer version of the avia framework so the structure is much different.

    I’ll check with the other support crew to see if we can get an answer on if this is possible with Corona.




    That would be great, thanks. I guess, Kriesi knows this, too, as he had concerning the same issue with NEWSCAST ( (Purchase code hidden if logged out) -description).


    any news concerning this issue?


    I think this line can be found in coronaincludesadminregister-menu-walker.php – replace:

    $description  = '<span class="main-menu-description">'.esc_attr( $item->description ).'</span>';


    $description  = '<span class="main-menu-description">'. $item->description .'</span>';


    Yeah, you made my day … that’s exactly what works like a charm! Thanks a lot!!!



    Glad that I could help you :)



Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘HMTL in main menu descriptions?’ is closed to new replies.