• Resolved nablafire

    (@nablafire)


    I noticed the following minor problem with the plugin. In the case of an empty div with no class attribute, I get the following HTML output …

    <divdata-aos=”fade-right” data-aos-duration=”1500″>
    </divdata-aos=”fade-right”>

    It seems that the Regex Parser is missing something here when inserting the AOS div. Note that there is no space between “<div” and “data-aos”. However, there is a workaround … by changing

    $attr = ”; —–> $attr = ‘ ‘; <– note the space

    On line 141 of ra-widgets-animate.php. After this I get nice HTML output and the plugin works great.

    <div data-aos=”fade-right” data-aos-duration=”1500″ class=”aos-init aos-animate”></div>

    • This topic was modified 7 years, 3 months ago by nablafire.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author FrodoBean

    (@frodobean)

    Hi,

    Can you provide an example of widgets that don’t have class attributes so I can further test? By the way, thanks for the bug fix. I’ll release an update to the plugin soon, If you have GitHub account you can create an issue here or pull requests here.

    Thanks!

    • This reply was modified 7 years, 3 months ago by FrodoBean.
    Plugin Author FrodoBean

    (@frodobean)

    Hi,

    Bug fixed. Please update to the latest version.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regex Bux Fix’ is closed to new replies.