Advertisement
fauzanjeg

Change URL Assets fro Child Theme

Apr 30th, 2021
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. /* Change URL Assets fro Child Theme */
  2. add_filter( 'jnews_get_asset_uri', 'jnews_override_assets' );
  3.  
  4. function jnews_override_assets( $url ) {
  5.     return get_stylesheet_directory_uri() . '/assets/';
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement