Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_footer', 'change_element_url' );
- function change_element_url() { ?>
- <script type="text/javascript">
- ;(function ($) {
- $(function () {
- $("a[href]").each(function () {
- $(this).attr("href", $(this).attr("href").replace(/\/category\/news\//, '/news/'));
- });
- });
- })(jQuery);
- </script>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement