adding custom PHP code to Advanced recent post widget plugin
-
Hello,
I’m using the Advanced recent post widget for my website. In the advanced-recent-posts-widget.php file, I want to change line 154
<p class="post-date"><?php the_time("j M Y"); ?></p>to `<p>
<span class=”day”><?php the_time(‘j’); ?></span>
<span class=”month”><?php the_time(‘M’); ?></span>
<span class=”year”><?php the_time(‘Y’); ?> </span>
</p>`I know this is easy but I want to override this without it being affected when the plugin has been updated. Hardcoding it into the main file works but it’ll be gone when it’s updated. Where can I custom override it? FYI: I’m using a child theme for my website.
If anyone can please help me, it would be awesome!
The topic ‘adding custom PHP code to Advanced recent post widget plugin’ is closed to new replies.