• As per title, in this way I can change the order of the content in my theme itself.
    As example I need that the title, author and the date are in the same container, so I can divide the content in 2 columns.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kybernetik Services

    (@kybernetikservices)

    Thank you for reaching out.

    I guess you want to request an option to change the html structure of the output of Recent Posts Widget With Thumbnails, right? You can manipulate the layout through custom CSS. I’m sorry to inform you that I don’t include a template system to Recent Posts Widget With Thumbnails.

    Recent Posts Widget With Thumbnails is open source and you are invited to add this feature yourself and I would be happy if you submit a pull request to make the feature available to the entire community.

    Thank you for your understanding.

    With CSS something is achievable but the date/author is in another container so put the title with the date/author just below that, with the image on the left and this text on the right is not easy to achieve.

    I was thinking more like https://developer.www.ads-software.com/reference/functions/locate_template/ in the plugin code that check if inside the theme there is a file to load it instead of the new provided with the plugin.

    Plugin Author Kybernetik Services

    (@kybernetikservices)

    I understand your request but this would result in a complete rewrite of the output engine of Recent Posts Widget With Thumbnails. That’s why I don’t want to implement this. Not even since this is the first request. And the risk that all other users will be negatively affected by it does not outweigh the benefit for the community. The majority of users would never use such a feature. But as I wrote, you are invited to add the feature yourself.

    There is a GitHub repository or do you prefer a patch shared here?

    It is just a one-line patch ??

    Plugin Author Kybernetik Services

    (@kybernetikservices)

    Unfortunately it is not just a one-line patch.

    According to the WordPress developer guidelines, a template should be structured in such a way that the file does not contain any programming logic which are only integrated by function calls. The layout elements should be largely separated from the program logic. This is currently not the case with Ultimate Post List. Thats why I wrote, the template file widget.php needs reprogramming.

    Once you’re happy with your one-line patch, use it in your installation. But I won’t merge it in the Ultimate Post List version for the public.

    With https://developer.www.ads-software.com/reference/functions/locate_template/ you can share a parameter with the various variables.
    I will try to do a patch to show to you how it is simple without altering nothing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom widget.php file’ is closed to new replies.