• Resolved toad78

    (@toad78)


    I’d like to be able to switch the order of the code. I’ve attempted to use jQuery, but it seems to ‘loop’ and repat throughout the loop of posts in the widget output.

    This is what it currently is:

    <li><a href="https://#"><img width="60" height="45" src="#" alt="#" />
    <span class="rpwwt-post-title">blah blah blah</span></a>
    <div class="rpwwt-post-categories"> |  <a href="#">News</a></div><div class="rpwwt-post-date">September 16, 2019</div>
    </li>

    I want it to be this:

    <li><a href="https://#"><img width="60" height="45" src="#" alt="#" /></a>
    <span class="rpwwt-post-title"><a href="https://#">blah blah blah</a></span><div class="rpwwt-post-date">September 16, 2019</div>
    <div class="rpwwt-post-categories"> | <a href="#">News</a></div>
    </li>

    Any way for this to be done without modifying the plugin code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    There is no way to alter the HTML code of the list since it is hard-wired in the template file includes/widget.php.
    I’m thinking of this approach for your request: in the files readme.txt and recent-posts-widget-with-thumbnails.php set the value of the version number very high to prevent further overrides of any file changes of the plugin in the future, here from 6.7.0 to e.g. 100.0.0. Then change the includes/widget.php as you need it.
    If you follow this way, there will be no more automatic updates of this plugin in your installation. If I would add just cosmetic changes to the plugin in future, that will be of no interest for you. But I can not exclude major changes like adding new features, closing security holes or maintaining compatibility with future WordPress versions.

    Thread Starter toad78

    (@toad78)

    But I can not exclude major changes like adding new features, closing security holes or maintaining compatibility with future WordPress versions.

    I completely understand. I was hoping for a more simpler version to rotate the content, but it looks like I’ll take your advice above.

    Thank you, Martin, for the suggestion and your time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Switch Elements Without Altering Plugin Code’ is closed to new replies.