• Hello,

    I have modified the template_widget.php file to change

    $output .= '<ol>';
    (...)
    $output .= '</ol>';

    to

    $output .= '<ul>';
    (...)
    $output .= '</ul>';

    Is it possible (via a css, a hook in function.php…) to have my setting kept when YARPP is updated ?

    • This topic was modified 4 years, 3 months ago by Lolo9002.
Viewing 1 replies (of 1 total)
  • Plugin Support Michael Nelson

    (@mnelson4)

    Hi @lolo9002, thanks for reaching out. It sounds like you’ve modified the YARPP plugin directly, which isn’t a good idea because, like you’ve seen, your changes will be lost everytime you update (and we’re hoping to keep releasing lots of updates!)

    I’d recommend you instead create a custom template. Here’s a pretty good tutorial on how to generally make custom templates.
    I would suggest you follow those steps and choose the “list” custom template. Then go into your theme’s files, find the file yarpp-template-list.php, and COPY the entire contents of template_widget.php, with all your modifications, into it. Then make sure you’re using that custom template in your widget.

    Once you’ve done that, you’ll be using a custom template that’s located in a separate theme file that won’t get overwritten every time YARPP is updated.

    Does that help?

Viewing 1 replies (of 1 total)
  • The topic ‘Ol/UL in template_widget.php’ is closed to new replies.