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

    According to this topic concerning HTML in NEWSCAST’s menus:

    http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-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:

    http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description

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

    Thanks.

    #77157

    no idea?

    #77158

    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.

    Regards,

    Devin

    #77159

    That would be great, thanks. I guess, Kriesi knows this, too, as he had concerning the same issue with NEWSCAST (http://www.kriesi.at/support/topic/html-within-wp3-menu-manager-description).

    #77160

    any news concerning this issue?

    #77161

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

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

    with:

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

    #77162

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

    #77163

    Hey!

    Glad that I could help you :)

    Regards,

    Peter

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

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