Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    I had this problem for my adoptables page https://newmexicohrs.org/adoptable-buns/

    If you edit the plugin directly you can add a php function to the description of the animal to convert whitespace newlines to <br />. It’s a hack but works.

    On line 306 where is lists $dog->description add nl2br($dog->description)

    Here is that whole line including my extra function:

    $output_buffer .= "<div class=\"description\">" . nl2br($dog->description) . "</div><div class=\"features\">" . $dog->age . ", " . (($dog->sex == "M") ? "Male" : "Female") . ", " . $dog->get_size() . "</div></div>";

    Hope that helps
    ~loothi

    • This reply was modified 8 years, 2 months ago by ljvx. Reason: format of code is wonky
    • This reply was modified 8 years, 2 months ago by ljvx. Reason: clarification of wording

    Actually, looking at it now, ignore my last idea and just change line 432
    $this->description = $description;

    to

    $this->description = nl2br($description);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paragraph's not appearing for Featured Pet’ is closed to new replies.