WordPress.org

Ready to get started?Download WordPress

Forums

OpenMenu - The official plugin for OpenMenu
Better matching of the formatting set in openm (2 posts)

  1. 2020media
    Member
    Posted 2 years ago #

    I added the following code nl2br to class-omf-render.php to get it to respect the carriage returns in menu item descriptions.

    Line 204 class-omf-render.php (in version 1.5.3 of the plugin)


    $retval .= '<dd class="description">' . $thi s->hl_food( $this->clean(nl2br($item['menu_item_description'])), $hl_primary, $hl_secondary ) . $calorie s . '</dd>';

    See http://php.net/manual/en/function.nl2br.php

    Might be useful in other parts too.

    http://wordpress.org/extend/plugins/open-menu/

  2. OpenMenu
    Member
    Plugin Author

    Posted 2 years ago #

    Thanx. Will look at adding this officially to the Render engine

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags